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 793 times
2 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-smi
to ensure that everything is working - (Optional) Switch to Nvidia Performance mode and reboot

Abdul Rauf
- 407
grep -i "nvidia" /var/log/Xorg.0.log
? – Michal Przybylowicz Nov 09 '19 at 09:37EE
(error) orWW
(warning). – Michal Przybylowicz Oct 20 '20 at 17:49nvidia
driver module? If not, then the kernel module (and thus the driver itself) isn't loaded. Doescat /proc/driver/nvidia/version
give you a version? – bdav Dec 01 '20 at 15:31