8

nvidia-smi is failing:

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

There appears to be prior installation [attempts?] of nvidia on this machine. How do I clean this up?

$ sudo ubuntu-drivers autoinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies: nvidia-driver-465 : Depends: libnvidia-extra-465 (= 465.19.01-0ubuntu1) but it is not going to be installed Recommends: libnvidia-compute-465:i386 (= 465.19.01-0ubuntu1) but it is not installable Recommends: libnvidia-decode-465:i386 (= 465.19.01-0ubuntu1) but it is not installable Recommends: libnvidia-encode-465:i386 (= 465.19.01-0ubuntu1) but it is not installable Recommends: libnvidia-ifr1-465:i386 (= 465.19.01-0ubuntu1) but it is not installable Recommends: libnvidia-fbc1-465:i386 (= 465.19.01-0ubuntu1) but it is not installable Recommends: libnvidia-gl-465:i386 (= 465.19.01-0ubuntu1) but it is not installable E: Unable to correct problems, you have held broken packages.

  • 1
    Typically you have to purge all old drivers first. If installed directly from nVidia with .run file, you need to remove that. If from Ubuntu repository sudo apt-get remove --purge nvidia-* Should not need ppa anymore as drivers included in Ubuntu repository: https://askubuntu.com/questions/61396/how-do-i-install-the-nvidia-drivers Uninstall the .run nVidia driver. https://askubuntu.com/questions/219942/how-to-uninstall-manually-installed-nvidia-drivers – oldfred Jun 08 '21 at 03:35
  • @oldfred I did a bunch of purges first. This is really a difficult [re-] install. I am going to go get some top pro's to do it – WestCoastProjects Jun 08 '21 at 03:41

1 Answers1

3

You can remove those individuallysudo apt-get remove --purge nvidia-driver-465