1

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.

3 Answers3

1

Check if Secure Boot is disabled in BIOS.

Pilot6
  • 92,041
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

Reference: https://forums.developer.nvidia.com/t/nvidia-smi-has-failed-because-it-couldnt-communicate-with-the-nvidia-driver-make-sure-that-the-latest-nvidia-driver-is-installed-and-running/197141/6?u=abdulraufmujahid

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.