Linux-Mint

無法安裝 nvidia-driver-455(從 450 版本升級)

  • November 18, 2020

我有一個基於 Linux Mint 20 Cinnamon Nvidia (GTX 1060) 的系統,當我注意到最新的 Nvidia 驅動程序已經出局時,我想立即安裝它們。

但是,我似乎無法安裝它:

apt-get --dry-run install nvidia-driver-455

拋出以下內容:

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-455 : Depends: libnvidia-extra-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                    Depends: nvidia-compute-utils-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                    Depends: libnvidia-encode-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                    Depends: nvidia-utils-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                    Depends: xserver-xorg-video-nvidia-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                    Depends: libnvidia-ifr1-455 (= 455.38-0ubuntu0.20.04.1) but it is not going to be installed
                    Recommends: libnvidia-compute-455:i386 (= 455.38-0ubuntu0.20.04.1)
                    Recommends: libnvidia-decode-455:i386 (= 455.38-0ubuntu0.20.04.1)
                    Recommends: libnvidia-encode-455:i386 (= 455.38-0ubuntu0.20.04.1)
                    Recommends: libnvidia-ifr1-455:i386 (= 455.38-0ubuntu0.20.04.1)
                    Recommends: libnvidia-fbc1-455:i386 (= 455.38-0ubuntu0.20.04.1)
E: Unable to correct problems, you have held broken packages.

我沒有任何持有的包裹,也沒有任何剩餘配置。


目前,我在核心 5.4.0-54-generic 上執行**版本 450,沒有任何問題。**那麼,我現在該怎麼辦?如何調查這個?

問題已解決,由於某種原因,仍然安裝了以前安裝版本的元包:nvidia-driver-440. 已經在 3 台筆記型電腦上複製,有問題的包保持不變,並阻止 Nvidia 更新。


在整體更新作業系統後,我重新啟動並發出:

apt-get purge nvidia-driver-440

結果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
 nvidia-driver-440*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 19.5 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 438621 files and directories currently installed.)
Removing nvidia-driver-440 (450.80.02-0ubuntu0.20.04.2) ...

現在上面的試執行似乎沒問題。以 root 身份安裝:

apt-get --install-recommends install nvidia-driver-455

進展順利,我的系統現在啟動沒有任何問題。


視覺證明(Mint 的驅動程序管理器):

視覺證明(Mint 的驅動程序管理器)

引用自:https://unix.stackexchange.com/questions/620141