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 tried manually installing as other answers had suggested, and nothing is working. I have purged and re-installed the latest as well as other versions of the drivers multiple times now.
Asked
Active
Viewed 1,023 times
3 Answers
0
This happened when Ubuntu update somehow messed up Nvidia driver during kernel upgrade to 6.1.0-1015-oem (Ubuntu 22.04). I had to execute these steps to restore nvidia driver.
sudo apt-get remove --purge '^nvidia-.*'sudo apt-get remove --purge '^libnvidia-.*'sudo apt-get remove --purge '^cuda-.*'sudo apt-get install linux-headers-$(uname -r)- Check latest recommended driver using
ubuntu-drivers devices(It was nvidia-driver-535 for me) - Install latest recommended driver
sudo apt install nvidia-driver-535 - Reboot and run
nvidia-smito ensure that everything is working - (Optional) Switch to Nvidia Performance mode and reboot
Abdul Rauf
- 457
0
In my case, reinstalling, disabling Secure Boot nor prime-select nor rebooting don't help.
I have to install nvidia-dkms package via sudo apt install nvidia-dkms-YOUR-VERSION which is missing in the recommended installation method in the official doc (https://ubuntu.com/server/docs/nvidia-drivers-installation). The nvidia-dkms package is only mentioned in the manual installation method.
grapemix
- 11