Unable to install Nvidia driver on Ubuntu 18.04

Hi Team,

I have bought 12 new machines for our office. There is a Quadro P600 mobile card on the laptops.
I have to download the drivers from the Nvidia website. When I try to install.

Here are a few errors coming in

  1. libglvnd incomplete installation
  2. unable to load the nvidia-drm kernel module

I have attached the nvidia-installer.log with this

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Tue Jul 30 18:50:27 2019
installer version: 430.40

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

nvidia-installer command line:
./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 12 CPUs online; setting concurrency level to 12.
-> Installing NVIDIA driver version 430.40.
-> There appears to already be a driver installed on your system (version: 378.13). As part of installing this driver (version: 430.40), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation)
-> Running distribution scripts
executing: ‘/usr/lib/nvidia/pre-install’…
-> done.
-> The distribution-provided pre-install script failed! Are you sure you want to continue? (Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Install NVIDIA’s 32-bit compatibility libraries? (Answer: Yes)
-> Will install GLVND GLX client libraries.
-> Will install GLVND EGL client libraries.
-> Skipping GLX non-GLVND file: “libGL.so.430.40”
-> Skipping GLX non-GLVND file: “libGL.so.1”
-> Skipping GLX non-GLVND file: “libGL.so”
-> Skipping EGL non-GLVND file: “libEGL.so.430.40”
-> Skipping EGL non-GLVND file: “libEGL.so”
-> Skipping EGL non-GLVND file: “libEGL.so.1”
-> Skipping GLX non-GLVND file: “./32/libGL.so.430.40”
-> Skipping GLX non-GLVND file: “libGL.so.1”
-> Skipping GLX non-GLVND file: “libGL.so”
-> Skipping EGL non-GLVND file: “./32/libEGL.so.430.40”
-> Skipping EGL non-GLVND file: “libEGL.so”
-> Skipping EGL non-GLVND file: “libEGL.so.1”
-> Uninstalling the previous installation with /usr/bin/nvidia-uninstall.
Looking for install checker script at ./libglvnd_install_checker/check-libglvnd-install.sh
executing: ‘/bin/sh ./libglvnd_install_checker/check-libglvnd-install.sh’…
Checking for libglvnd installation.
Checking libGLdispatch…
Checking libGLdispatch dispatch table
Checking call through libGLdispatch
All OK
libGLdispatch is OK
Checking for libGLX
libGLX is OK
Checking for libEGL
libEGL is OK
Checking entrypoint library libOpenGL.so.0
Checking call through libGLdispatch
Checking call through library libOpenGL.so.0
dlopen(“libOpenGL.so.0”) failed: libOpenGL.so.0: cannot open shared object file: No such file or directory
Checking entrypoint library libGL.so.1
Checking call through libGLdispatch
Checking call through library libGL.so.1
All OK
Entrypoint library libGL.so.1 is OK

Found libglvnd libraries: libGL.so.1 libEGL.so.1 libGLX.so.0 libGLdispatch.so.0
Missing libglvnd libraries: libOpenGL.so.0

-> An incomplete installation of libglvnd was found. All of the essential libglvnd libraries are present, but one or more optional components are missing. Do you want to install a full copy of libglvnd? This will overwrite any existing libglvnd libraries. (Answer: Install and overwrite existing files)
Will install libglvnd libraries.
Will install libEGL vendor library config file to /usr/share/glvnd/egl_vendor.d
-> Searching for conflicting files:
-> done.
-> Installing ‘NVIDIA Accelerated Graphics Driver for Linux-x86_64’ (430.40):
executing: ‘/sbin/ldconfig’…
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:
-> done.
ERROR: Unable to load the ‘nvidia-drm’ kernel module.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

nvidia-bug-report.log.gz (81 KB)

Please make sure secure boot is disabled in bios. Furthermore,

Hi team,

I tried the above steps given by you. unfortunately, it didn’t work.

Again I am getting this error

“nvidia-smi has failed because it couldn’t communicate with the nvidia driver. Make sure that the latest NVIDIA driver is installed and running”

I have attached the nvidia-bug-report.gz

nvidia-bug-report.log.gz (81 KB)

This is an Optimus notebook. Please try the following:

  • install nvidia-prime (sudo apt install nvidia-prime)
  • switch to nvidia (sudo prime-select nvidia)
  • remove stray blacklist files (sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf)
  • update the initrd (sudo update-initramfs -u)
  • reboot

Thanks for your extraordinary support! It worked :)