升级到 23.04 后,我的内核配置了一半

升级到 23.04 后,我的内核配置了一半

因此,我升级到了 23.04,但 apt upgrade 出现问题,提示有 4 个软件包“未完全安装或删除”。然后,它继续尝试配置我当前正在运行的内核,即 6.2.0-20-generic。

dpkg 似乎由于某些依赖关系而失败,但我不确定具体是什么。请参阅下面的错误日志。在我粘贴的内容之后还有更多内容,但其他软件包显然由于无法配置第一个软件包而失败。我已经研究过这个问题,但我并不完全确定该怎么做。

我曾尝试卸载内核,但 apt 失败。

root@5DC:/# apt update
Hit:1 http://security.ubuntu.com/ubuntu lunar-security InRelease
Get:2 http://archive.ubuntu.com/ubuntu lunar InRelease [267 kB]                
Hit:3 https://packages.matrix.org/debian focal InRelease                       
Get:5 http://archive.ubuntu.com/ubuntu lunar-updates InRelease [90.7 kB]       
Hit:6 http://archive.ubuntu.com/ubuntu lunar-backports InRelease
Hit:4 https://packagecloud.io/crowdsec/crowdsec/ubuntu jammy InRelease
Fetched 357 kB in 1s (377 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@5DC:/# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
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-gen
eric/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 subpr
ocess 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
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          No apport report written because the error message ind
icates its a followup error from a previous failure.
                                                    Processing triggers for linu
x-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-gen
eric/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 subproc
ess returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encoun
tered while processing:
 linux-headers-6.2.0-20-generic
 linux-headers-generic
 linux-generic
 linux-image-6.2.0-20-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我遇到了同样的问题,不得不彻底删除所有 dkms 模块。

$ dkms status

将显示模块。使用以下命令删除它们:

dkms remove --all modulename

答案2

通过使用命令删除 DisplayLink evdi 来解决sudo displaylink-installer uninstall

相关内容