今天我打开了笔记本电脑,Ubuntu让我下载一些更新。我接受了,安装之后,弹出窗口要求重新启动系统。
系统重新启动后,我注意到外部显示不再工作了。进入屏幕设置,似乎只检测到主(膝上型)显示器。
然后,我开始检查一些挂起的更新:
$ sudo apt update
Hit:1 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:2 http://ppa.launchpad.net/aslatter/ppa/ubuntu focal InRelease
Hit:3 http://it.archive.ubuntu.com/ubuntu focal InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:5 http://it.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:6 http://packages.microsoft.com/repos/code stable InRelease
Hit:7 http://ppa.launchpad.net/fish-shell/release-3/ubuntu focal InRelease
Hit:8 http://it.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:9 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu focal InRelease
Fetched 109 kB in 1s (146 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
$ sudo apt list --upgradable -a
Listing... Done
linux-modules-nvidia-460-generic-hwe-20.04/focal-updates 5.8.0-49.55~20.04.1+1 amd64 [upgradable from: 5.8.0-48.54~20.04.1]
linux-modules-nvidia-460-generic-hwe-20.04/focal-security,now 5.8.0-48.54~20.04.1 amd64 [installed,upgradable to: 5.8.0-49.55~20.04.1+1]然后我运行了sudo apt upgrade,但是它没有改变任何东西,包更新仍在等待中。然后,我尝试手动安装该软件包:
$ sudo apt install linux-modules-nvidia-460-generic-hwe-20.04
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:
linux-modules-nvidia-460-generic-hwe-20.04 : Depends: linux-modules-nvidia-460-5.8.0-49-generic (= 5.8.0-49.55~20.04.1+1) but it is not going to be installed
Depends: nvidia-kernel-common-460 (>= 460.56) but 460.39-0ubuntu0.20.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.这个问题有可能是由最近的内核更新引起的吗?我想是从5.8.0.48到5.8.0.49:
$ find /boot/vmli*
/boot/vmlinuz
/boot/vmlinuz-5.8.0-48-generic
/boot/vmlinuz-5.8.0-49-generic
/boot/vmlinuz.old我也尝试用5.8.0.48从Grub启动,但我被卡在登录屏幕上,系统完全冻结。
知道怎么解决吗?
非常感谢!
发布于 2021-04-14 07:19:44
您可以将linux-modules-nvidia-460-generic-hwe-20.04包(及其所有依赖项)降级到以前的版本(5.8.0-48.54~20.04.1),以解决该问题,这是因为linux-modules-nvidia-460-generic-hwe-20.04 (5.8.0-49.55~20.04.1+1)包的依赖关系破裂,要求(依赖) nvidia-kernel-common-460包大于或等于版本460.56,但到目前为止只有版本460.39可用。我希望软件包维护人员能够迅速解决这一问题。
发布于 2021-04-14 07:00:26
*同一天晚些时候,Ubuntu修复了这一问题。
Ubuntu发布了一个新的内核包linux 5.8.0-49通用的,但没有发布所有需要的nvidia内核驱动程序包(至少缺少nvidia内核-通用-460 (>= 460.56) )。在Ubuntu修复之前,Nvidia驱动程序将无法使用新内核。引导较早的Linux版本Linux-Image-5.8.0-48-泛型,而且它仍然可以正常工作。
发布于 2022-06-27 04:18:27
在更新我的系统后,我也遇到了同样的问题,在运行sudo apt list --upgradable之后,我注意到nvidia在可升级包列表中,运行sudo apt dist-upgrade -y解决了我的问题(我认为sudo apt update && sudo apt upgrade应该这么做,但没有。)
https://askubuntu.com/questions/1331098
复制相似问题