我在一台戴尔笔记本电脑上运行 22.10,弹出一个升级到 23.04 的提示。在安装过程中,我收到一条错误消息,指出由于错误导致 linux-headers-6.2.0-20-generic 的安装失败。最后,它说系统将处于不稳定状态。我还没有重启笔记本电脑,但我相信即使我尝试,它也不会重启!:/
以下是输出sudo dpkg --configure -a
:
Setting up linux-image-6.2.0-20-generic (6.2.0-20.20) ...
Setting up linux-headers-6.2.0-20-generic (6.2.0-20.20) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.0-20-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.2.0-20-generic all INCLUDEDIR=/lib/modules/6.2.0-20-generic/build/include KVERSION=6.2.0-20-generic DKMS_BUILD=1...(bad exit status: 2)
ERROR (dkms apport): binary package for evdi: 1.12.0 not found
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/evdi/1.12.0/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.2.0-20-generic (--configure):
installed linux-headers-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-generic:
linux-headers-generic depends on linux-headers-6.2.0-20-generic; however:
Package linux-headers-6.2.0-20-generic is not configured yet.
dpkg: error processing package linux-headers-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 6.2.0.20.20); however:
Package linux-headers-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Processing triggers for linux-image-6.2.0-20-generic (6.2.0-20.20) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 6.2.0-20-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.2.0-20-generic all INCLUDEDIR=/lib/modules/6.2.0-20-generic/build/include KVERSION=6.2.0-20-generic DKMS_BUILD=1...(bad exit status: 2)
ERROR (dkms apport): binary package for evdi: 1.12.0 not found
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/evdi/1.12.0/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.2.0-20-generic (--configure):
installed linux-image-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
linux-headers-6.2.0-20-generic
linux-headers-generic
linux-generic
linux-image-6.2.0-20-generic
我应该怎样修复此问题?
答案1
好的,现在要重启了!从最初的恐慌中恢复过来后,我发现错误是由于二进制文件中缺少“evdi”包造成的。在谷歌搜索了一下后,我发现这是“DisplayLink”驱动程序的依赖项,显然它还没有为 23.04 做好准备。evdi 的版本 1.12 似乎仍然不稳定。无论如何,卸载 DisplayLink 驱动程序然后运行 dpkg configure 似乎有助于升级。
对于其他面临此问题的人:
- 如果你正在使用 DisplayLink,请不要升级到 23.04(暂时)
- 如果你遇到此问题,请使用以下命令:
sudo displaylink-installer uninstall
sudo dpkg --configure -a
更新:操作系统更新似乎已完成,重启没有出现任何问题。现在,将找到一种方法来重新安装 Displaylink。
答案2
以下是我解决问题的方法:
从此处下载最新版本的 displaylink Synaptic 网站 版本为 5.7.0-61.129(此版本的发行说明中包含以下内容:增加了对内核 6.2 的初步支持;增加了对 Ubuntu 23.04 的初步支持)
进入下载文件所在的文件夹并解压
unzip DisplayLink\ USB\ Graphics\ Software\ for\ Ubuntu5.7-EXE.zip
使脚本可执行
chmod +x displaylink-driver-5.7.0-61.129.run
以超级用户身份运行脚本
sudo ./displaylink-driver-5.7.0-61.129.run
现在重新配置内核
sudo dpkg --configure -a
不再有错误(至少对我来说)。
答案3
我的桌面出现错误,无法安装内核,并且重启时内核崩溃,我能够使用之前的内核并且一切正常,我的笔记本电脑升级正常但确实指出有一些东西是只读的,但计算机锁定了,我恢复到之前的内核一切似乎都正常。
答案4
我遇到了同样的问题,并使用@NikhilWanpal 的解决方案卸载 DisplayLink 解决了该问题。要重新安装它,我按照 @MicheleZ 发布到 Synaptics 网站的链接进行操作。但是,我没有按照他们的说明下载独立安装程序,而是使用了 Synaptics APT 存储库。它立即与 23.04 配合使用(甚至不需要重新启动)。它的好处是可以自动保持最新状态。