一些 nvidia 驱动程序包在更新到 450 后总是要求升级

一些 nvidia 驱动程序包在更新到 450 后总是要求升级

Ubuntu 18.04,在我通过 apt install nvidia-driver-450 升级到版本 450 驱动程序后,440 驱动程序包被自动删除。一切正常,但 apt 总是要求我升级这些软件包:

$ apt list --upgradable
Listing... Done
libnvidia-cfg1-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
libnvidia-common-450/unknown 450.36.06-0ubuntu1 all [upgradable from: 450.36.06-0ubuntu1]
libnvidia-compute-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
libnvidia-decode-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
libnvidia-encode-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
libnvidia-fbc1-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
libnvidia-gl-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
libnvidia-ifr1-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
libxnvctrl0/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
numix-icon-theme-circle/bionic,bionic 19.12.27+202006072001~ubuntu18.04.1 all [upgradable from: 19.12.27+202005141854~ubuntu18.04.1]
nvidia-dkms-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]
nvidia-kernel-source-450/unknown 450.36.06-0ubuntu1 amd64 [upgradable from: 450.36.06-0ubuntu1]


$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libnvidia-cfg1-450 libnvidia-common-450 libnvidia-compute-450 libnvidia-decode-450
  libnvidia-encode-450 libnvidia-fbc1-450 libnvidia-gl-450 libnvidia-ifr1-450 libxnvctrl0
  numix-icon-theme-circle nvidia-dkms-450 nvidia-kernel-source-450
12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 96.6 MB/96.7 MB of archives.
After this operation, 753 kB of additional disk space will be used.

正如您所看到的,版本是相同的...所以在我完成这次升级后,它仍然告诉我升级。

我当然apt update这样做了,apt clean但它仍然不起作用。

(来自此 repo 的 NVIDIA 驱动程序deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /:)

答案1

CUDA 存储库中的元数据问题已解决。运行apt-get update并重试。

另外,请记住您可以提交错误:https://developer.nvidia.com/nvidia_bug/add

您需要登录/注册 NVIDIA 开发者账户。然后选择

  • 相关领域
    • 其他
      • CUDA 安装程序

答案2

我注意到我可以忽略此升级消息而不会出现任何问题。所以我输入:

sudo apt-mark hold libnvidia-cfg1-450 libnvidia-common-450 libnvidia-compute-450 libnvidia-decode-450 libnvidia-encode-450 libnvidia-fbc1-450 libnvidia-gl-450 libnvidia-ifr1-450 libxnvctrl0 nvidia-dkms-450 nvidia-kernel-source-450

现在我不需要打字了n

答案3

我已卸载 nvidia-settings 并重新安装。

sudo apt-get remove nvidia-settings
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install nvidia-settings

我不明白为什么不使用 apt-get reinstall nvidia-settings,但这一步却很有效。

谢谢

相关内容