编辑:我正在运行 Ubuntu 21.04 hirsute。
从今天早上开始,apt 显示linux-modules-nvidia-470-generic-hwe-20.04
我的机器可以升级,但实际上无法安装更新。不幸的是,它nvidia-smi
也停止工作了,所以我怀疑这可能与此有关。
编辑:这是输出sudo apt update
:
$ sudo apt update
Hit:1 http://de.archive.ubuntu.com/ubuntu hirsute InRelease
Get:2 http://de.archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB]
Hit:3 http://security.ubuntu.com/ubuntu hirsute-security InRelease
Get:4 http://de.archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB]
Fetched 216 kB in 0s (652 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
$ apt list --upgradable -a
Listing... Done
linux-modules-nvidia-470-generic-hwe-20.04/hirsute-updates,hirsute-security 5.11.0-34.36 amd64 [upgradable from: 5.11.0-31.33]
linux-modules-nvidia-470-generic-hwe-20.04/now 5.11.0-31.33 amd64 [installed,upgradable to: 5.11.0-34.36]
这是我尝试强制更新时得到的结果:
$ sudo apt install --only-upgrade linux-modules-nvidia-470-generic-hwe-20.04
Reading package lists... Done
Building dependency tree... Done
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:
linux-modules-nvidia-470-generic-hwe-20.04 : Depends: linux-modules-nvidia-470-5.11.0-34-generic (= 5.11.0-34.36) but it is not going to be installed
Depends: nvidia-kernel-common-470 (>= 470.63.01) but 470.57.02-0ubuntu0.21.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
因此问题似乎是nvidia-kernel-common-470
版本 470.63.01 尚未进入 hirsute-updates。
编辑:apt-cache policy
给我:
$ apt-cache policy linux-modules-nvidia-470-generic-hwe-20.04
linux-modules-nvidia-470-generic-hwe-20.04:
Installed: 5.11.0-31.33
Candidate: 5.11.0-34.36
Version table:
5.11.0-34.36 500
500 http://de.archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
500 http://security.ubuntu.com/ubuntu hirsute-security/restricted amd64 Packages
*** 5.11.0-31.33 100
100 /var/lib/dpkg/status
$ apt-cache policy nvidia-kernel-common-470
nvidia-kernel-common-470:
Installed: 470.57.02-0ubuntu0.21.04.1
Candidate: 470.57.02-0ubuntu0.21.04.1
Version table:
*** 470.57.02-0ubuntu0.21.04.1 500
500 http://de.archive.ubuntu.com/ubuntu hirsute-updates/restricted amd64 Packages
500 http://security.ubuntu.com/ubuntu hirsute-security/restricted amd64 Packages
100 /var/lib/dpkg/status
这里最安全的方法是什么?我应该等待 nvidia-kernel-common-470 在 hirsute-updates 上被提升吗?