NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. (Ubuntu20 Nvidia 3070)

I have two systems in my laptop ubuntu20.04 and win11 home version. I tried to drive the Nvidia 3070 in Ubuntu to carry out gpu calculation but it didn’t work. I used the commands “sudo apt install nvidia-utils-570-server” “sudo apt install nvidia-dkms-570“ . When I used nvidia-smi, it said “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver.“ I also checked the case by sudo nvidia-bug-report.sh and it said something as below. I used to try the 535-server and it didn’t work too. I have no idea that how could I fix the problem. Could you help me fix the problem. Thanks a lot.

Summary of Skipped Sections:

Skipped Component | Details

ldd output | glxinfo not found

vulkaninfo output | vulkaninfo not found

ibstat output | ibstat not found

acpidump output | acpidump not found

mst output | mst not found

nvlsm-bug-report.sh output | nvlsm-bug-report.sh not found

Summary of Errors:

Error Component | Details | Resolution

I suggest un-doing all the manual installs you have done, and then using Ubuntu’s built in NVIDIA driver installer instead:

sudo ubuntu-drivers install

More info here: https://documentation.ubuntu.com/server/how-to/graphics/install-nvidia-drivers/

But in addition to this, Ubuntu 20.04 is EOL and you should stop using it unless you have a really good reason to continue to use this. I would upgrade to 24.04 at least, e.g.:

sudo apt update
sudo apt upgrade

Reboot… then upgrade to 22:

sudo do-release-upgrade

And then repeat to upgrade from 22 to 24.
Then you can install the NVIDIA driver as mentioned above.

Or if you want the newest driver, you can use NVIDIA’s official repo instead of Ubuntu’s as per the instructions here: https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/ubuntu.html

1 Like