Glam Prestige Journal

Bright entertainment trends with youth appeal.

I am trying to install vulkan on the remote server.

OS: Ubuntu 18.04

GPU: Nvidia GeForce RTX 2080ti

cuda version: 10.2

GPU driver version: 440.64

First, I installed the SDK as following:

wget -qO - | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-bionic.list
sudo apt update
sudo apt install vulkan-sdk

These commands are from

After that, I ran command vulkaninfo, but it showed that the driver isn't installed properly. So I installed the driver as this apt-get install mesa-vulkan-drivers.

Then I ran vulkaninfo again. It showed

'DISPLAY' environment variable not set... skipping surface info
error:XDG_RUNTIME_DIR not set in the environment.
ERROR at /build/vulkan-tools-1.2.162.1~rc1 1lunarg18.04/vulkaninfo/vulkaninfo.h:248:vkEnumerateInstanceExtensionProperties failed with ERROR_INITIALIZATION_FAILED

For the first line, I think it may not be a big deal so I ignored it.

And I tried 2 methods to fix the error

error:XDG_RUNTIME_DIR not set in the environment.

Method1: I ran the following 2 commands

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY vulkan

and

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY vulkaninfo

But it showed

Error getting authority: Error initializing authority: Could not connect: No such file or directory

for both commands.

Method2And I tried to add

Defaults env_keep += "DISPLAY XAUTHORITY"

in sudoers file, but it didn't fix the problem.

Actually, I am new to vulkan and not very familiar with Ubuntu. I tried some commands above just because I found others used them to fix the same problem.

I wonder if I have installed the vulkan properly and the problem is about the configuration. Or I didn't install vulkan completely.


Now I undid what I did before, and I just use

sudo apt-get install vulkan-utils

It seems that I installed vulkan, but when running

vulkaninfo

it shows

=========== VULKAN INFO

Vulkan Instance Version: 1.1.70

Cannot create Vulkan instance. /build/vulkan-UL09PJ/vulkan-1.1.70+dfsg1/demos/vulkaninfo.c:768: failed with VK_ERROR_INCOMPATIBLE_DRIVER

How can I fix it without reinstalling my nvidia driver?

(Maybe the easiest way is to uninstall my driver now and install a new driver from , but I can't uninstall my driver.)

6

1 Answer

Undo whatever you just did, and just follow the manual:

So, only install nvidia-somenumber, and that should be it.

  • You do not need SDK, unless you are a developer
  • mesa-vulkan-drivers is for AMD and Intel GPUs, so do not install that unless you have those
  • do not screw your env unless you are pretty sure what you are doing
  • if for some reason driver does not pull it in itself, you can install vulkan-tools, which will give you vulkaninfo and vkcube test apps
5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy