Unable to install Nvidia driver on *air-gapped* Ubuntu 18.04

I read the July 2019 post “Unable to install Nvidia driver on Ubuntu 18.04” where the advice is to use apt. The problem with the advice is the computer is “air gapped” embedded machine. So, I was trying to use the .run file. BTW, ncurses v5 is installed but it appears to want v6.

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Tue Mar 2 13:01:38 2021
installer version: 460.56

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line:

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
→ Detected 24 CPUs online; setting concurrency level to 24.
→ Installing NVIDIA driver version 460.56.
→ 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: Abort installation)
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.

That’s a security measure so you don’t accidentally install over already installed repo packages. Use
dpkg -l | grep nvidia
to check, uninstall if necessary, then run the runfile installer with --dkms option and choose continue when asked.

1 Like