NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver

I followed the recommendation here to use sudo ubuntu-drivers install --gpgpu command to install nVidia driver for computing purposes on Ubuntu 22.04.5 LTS. The screen says it is “nvidia-headless-no-dkms-570-server” that is installed. Then I try running nvidia-smi command. To my surprise, this command is not included in driver. Ubuntu gives me a list of commands to select, and I chose sudo apt install nvidia-utils-570-server because that is the most matching choice. But after the installation, I got the following error from nvidia-smi command:

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 can’t see any mistake I’ve made during the installation. Can anyone please help me with this issue? Thanks.

PS, I have just checked that the machine is using UEFI and Security Boot is ON.

PS2, The GPU is dual A5000 Ada.

I solved the problem myself. Just run sudo apt install nvidia-dkms-570 and nvidia-smi works.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.