Installing nvidia vulkan drivers for 16.04
Solution 1
sudo apt-add-repository ppa:canonical-x/vulkan
sudo apt update
sudo apt install nvidia-364
Downlad the sdk https://lunarg.com/vulkan-sdk/
Run the sdk, copy the extracted folder to some location and add the following path variables
export LD_LIBRARY_PATH=$HOME/VulkanSDK/1.0.21.1/x86_64/lib
export VK_LAYER_PATH=$HOME/VulkanSDK/1.0.21.1/x86_64/etc/explicit_layer.d
You may need to adjust the path.
That is all you need to do.
The sdk is completely optional, but this should get you get started.
Update:
Actually 355 and 364 don't work with hibernation for me, installing the latest 367
driver from https://developer.nvidia.com/vulkan-driver works so far without any hiccups.
Solution 2
I had the same issue, until I uninstalled mesa-vulkan-drivers
. DOTA2 then immediately started with the -vulkan
option. Also vulkaninfo
gives me a lot more output now, without the error.
Solution 3
I used this guide https://linuxgamecast.com/2016/02/installing-and-testing-vulkan-on-ubuntu/ and it worked. Steps I did:
- Get driver from https://developer.nvidia.com/vulkan-driver
-
chmod +x
driver sudo apt-get remove nvidia-*
- restarted machine
- Booted to recovery mode with superuser terminal
- Installed drivers
-
sudo reboot
and booted normally
I checked Vulkan support on DOTA2 and it didn't complained about no Vulkan support (like it did on previous drivers) but game was crashing on startup. Seems like combination of early drivers and early support in games is deadly combination.
Related videos on Youtube
Maik Klein
Updated on September 18, 2022Comments
-
Maik Klein almost 2 years
I am on 16.04 with an Nvidia 760GTX which should be supported by vulkan.
I installed
libvulkan-dev
added this ppahttps://launchpad.net/~canonical-x/+archive/ubuntu/vulkan
I also installed
vulkan-utils mesa-vulkan-drivers
There should be a package called
nvidia-graphics-drivers-364
in there but I only seenvidia-364
andnvidia 364-dev
. I chose to installnvidia-364
.When I try to run
vulkaninfo
I get/build/vulkan-1P8eOh/vulkan-1.0.8.0+dfsg1/demos/vulkaninfo.c:1156: failed with VK_ERROR_INITIALIZATION_FAILED
at the end
I also tried to install https://developer.nvidia.com/vulkan-driver but I get a
distribution script failed error
and the driver doesn't work. -
Vadim Peretokin about 8 yearsThat made it worse for me, now the command doesn't get as far and gives this error: ``` Cannot create Vulkan instance. /build/vulkan-1P8eOh/vulkan-1.0.8.0+dfsg1/demos/vulkaninfo.c:633: failed with VK_ERROR_INCOMPATIBLE_DRIVER ```
-
Lennart Rolland almost 8 yearsThanks! I stole some of this advice for my blog and linked to this page for credits blog.octomy.org/2016/09/…
-
Rohit Dhankar over 4 yearsSomething not right here - am unable to diagnose why this is throwing an error - seems i should ask a new question . ``` $ sudo apt-add-repository ppa:canonical-ubuntu/vulkan Cannot add PPA: 'ppa:~canonical-ubuntu/ubuntu/vulkan'. ERROR: '~canonical-ubuntu' user or team does not exist. $ sudo apt-add-repository ppa:canonical-vulkan Cannot add PPA: 'ppa:~canonical-vulkan/ubuntu/ppa'. ERROR: '~canonical-vulkan' user or team does not exist. ```