nvidia-smi 失败:
$ 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.
这台机器上似乎曾安装过 [尝试?] nvidia。我该如何清除它?
$ 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
您可以单独删除它们sudo apt-get remove --purge nvidia-driver-465