I know that a similar problem has already been discussed more than once, but none of the solutions helped me. I also encountered something interesting and not clear.
Goal: I had a nvidia-driver- 390 installed, I needed to update it to use newer versions of the program.
I followed the manuals, but in the end nothing worked and now nvidia-smi
does not even work for me:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
From the very beginning, with sudo ubuntu-drivers devices
, I received
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
== /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
vendor : NVIDIA Corporation
model : GP102 [GeForce GTX 1080 Ti]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-470 - third-party non-free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-510 - third-party non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
Then I tried this:
# To install recommended
sudo ubuntu-drivers autoinstall
OR
# To install specific distro
sudo apt install nvidia-driver-[version number]
But after reboot nvidia-smi
returned error
Then I followed instructions like this one and this one and uninstalled the old drivers, installed the new ones, but still got failures.
This is what I got after uninstalling the drivers:
dpkg -l | grep nvidia
ii screen-resolution-extra 0.18build1 all Extension for the nvidia-settings control panel
But after trying to install drivers (470 or 510) nothing changed.
Actually now I get this message:
sudo ubuntu-drivers devices
WARNING:root:_pkg_get_support nvidia-driver-390: package has invalid Support Legacyheader, cannot determine support level
WARNING:root:_pkg_get_support nvidia-driver-510: package has invalid Support PBheader, cannot determine support level
== /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001B06sv00001458sd0000374Cbc03sc00i00
vendor : NVIDIA Corporation
model : GP102 [GeForce GTX 1080 Ti]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-470 - third-party non-free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-510 - third-party non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
As you can see there is a new line WARNING:root:_pkg_get_support nvidia-driver-510: package has invalid Support PBheader, cannot determine support level
But it still doesn’t work.
My config:
cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
uname -a
Linux boklagII-lx 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Any help please, I’ve already lost a lot of time