pvkrun command not found

In this troubleshooting guide we learn how to fix pvkrun command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pvkrun: command not found

or when using sudo you get the following error message

sudo: pvkrun: command not found

Solutions to pvkrun: command not found

How To Fix pvkrun: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pvkrun is provided by primus-vk package.

primus-vk is:

Typically you want to display an image rendered on a more powerful GPU on a display managed by an internal GPU. The layer in this package will direct rendering commands to a dedicated, more powerful GPU an when such an image is displayed it will be copied to the integrated CPU for displaying.

The user can activate offloading for individual applications by launching them with the “pvkrun” program.

To fix this problem, we can install more using the command below.

sudo apt-get -y install primus-vk

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install primus-vk.

sudo apt -y install primus-vk

Or if you have aptitude installed you can use the following command.

sudo aptitude install primus-vk

Summary

In this tutorial we learn how to fix pvkrun command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.