New computer: install NVidia drivers don't take

I figured out the magic incantation to solve:

“WARNING: You do not appear to have an NVIDIA GPU supported by the 535.146.02 NVIDIA Linux graphics driver installed in this system.”

No drivers are in Software & Updates → Additional Drivers

There were three issues:

  1. This driver needs to be installed with Xorg off/stopped
  2. The Nvidia Kernel was build with a different version of the compiler
  3. various libraries were missing

To fix #1 you need to install and configure ssh so you can log in from another computer

To find out what else you need to do run nvidia-bug-report.sh

And review carefully nvidia-bug-report.log.gz and /var/log/nvidia-installer.log

Install Ubuntu 22.04.3.LTS

Use FireFox to Download the latest version of driver

Official Drivers | NVIDIA

In my case it is NVIDIA-Linux-x86_64-535.154.05.run

Firefox puts them in the ~/Downloads folder

Sudo apt install ssh

Config ssh

Get IP address from ipconfig command

ssh into your computer (put in your values)

ssh bill@10.0.0.181

cd Downloads

sudo telinit 3

sudo apt install gcc

sudo apt-get install build-essential

sudo apt update

sudo apt install --reinstall gcc-12

sudo ln -s -f /usr/bin/gcc-12 /usr/bin/gcc

sudo apt install pkg-config

sudo apt-get update

sudo apt-get -y install libglvnd-dev

sudo ./NVIDIA-Linux-x86_64-535.154.05.run

sudo bash NVIDIA-Linux-x86_64-535.154.05.run

sudo reboot

1 Like