Score:4

How to clean-up / reinstall nvidia drivers on ubuntu 20.04?

ph flag

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.

oldfred avatar
cn flag
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
ph flag
@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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.