I am trying to install Nvidia package and CUDA Toolkit in my Ubuntu 16.04 LTS. I have installed Nvidia driver and on running :


it shows my driver version is 384.111 and it seems the same is perfectly installed.

Now, I'm trying to install Cuda Toolkit 9.1. The same is causing a problem. I am going to tty1 and the stopping lightdm. Thereafter, I'm trying to run the ".run" file downloaded from


I am getting the following error:

Checking for libEGL
Got EGL_VENDOR string "NVIDIA", expected "DUMMY VENDOR"

An incomplete installation of libglvnd was found. Do you want to install a full copy of libglvnd? This will overwrite any existing libglvnd libraries.

I would like to request any suggestions on what steps should I follow. For your info, I had earlier purged all Nvidia files before installing the driver.

  • How are you installing the NVIDIA drivers? From a .run file or from the graphics-drivers ppa? – Terrance Mar 28 '18 at 16:28
  • I installed the nvidia drivers from the run file...NVIDIA-Linux-x86_64-390.42.run file. This successfully ran. Now, I'm trying to install Cuda Toolkit .run file, which is cuda_9.1.85_387.26_linux.run – Sayantan Mar 28 '18 at 16:33
  • I only asked that because on Ubuntu I couldn't do it from a run file either. I actually ended up installing the drivers from the ppa instead. I helped someone recently in the comments here: askubuntu.com/questions/1016876/… I am thinking I need to write something up as an answer for it. – Terrance Mar 28 '18 at 16:34

There aren't any libglvnd packages in the default Ubuntu 16.04 repositories, so you must have gotten the incomplete installation of libglvnd from some other software source, possibly from the Nvidia files that you had earlier purged, if not from some other package that uses GL graphics library. So allow installing a full copy of libglvnd in order to make sure that NVIDIA CUDA Toolkit 9.1 works properly.

| improve this answer | |
  • Thanks, karel. It would be great if you could suggest where could I download/how could i install libglvnd package again. – Sayantan Mar 28 '18 at 16:53
  • Is it an acceptable solution if I were to delete libglvnd? – Sayantan Mar 28 '18 at 16:57
  • I recommend deleting the existing libglvnd or simply overwriting it with the new one. You can also get libglvnd from the Ubuntu 17.10 and 18.04 repositories. There's nothing much for dependencies, so it looks like you can just download whatever libglvnd .deb files you want from Ubuntu Package Search and manually install them. – karel Mar 28 '18 at 16:59
  • I forgot to mention that the best command for manually installing .deb files is sudo apt install ./package.deb because it automatically resolves dependencies. – karel Mar 28 '18 at 17:11
  • 1
    Thanks a lot. Before trying to reinstalling the package, i unpackaged the .run file and split it to two - .run for driver and .run for samples. THen I installed. It seems the install was successful. Now, the nvcc path needs to be updated. – Sayantan Mar 28 '18 at 17:20

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.