无法升级内核 - ‘dpkg:依赖性问题 - 未配置’和‘(dkms apport):不支持内核包 linux-***’

无法升级内核 - ‘dpkg:依赖性问题 - 未配置’和‘(dkms apport):不支持内核包 linux-***’

目前,我的内核版本是:6.4.10-060410-generic,我正在使用 Ubuntu 23.04。当我尝试升级内核时,突然收到错误。我不仅对版本 6.5.1 收到此错误,而且当我想升级到任何版本时都会收到此错误。

另外,虽然我之前能够使用主线进行更新而没有任何错误,但是在我想要安装版本 6.5.0 之后我开始收到此类错误,并且无法更新到任何版本。

mainline 1.4.8
install 6.5.1 
Downloading 6.5.1
Installing 6.5.1                                                      
Selecting previously unselected package linux-modules-6.5.1-060501-generic.
dpkg: warning: files list file for package 'linux-image-unsigned-6.4.10-060410-generic' missing; assuming package has no files currently installed
(Reading database ... 215872 files and directories currently installed.)
Preparing to unpack .../linux-modules-6.5.1-060501-generic_6.5.1-060501.202309020842_amd64.deb ...
Unpacking linux-modules-6.5.1-060501-generic (6.5.1-060501.202309020842) ...
Selecting previously unselected package linux-headers-6.5.1-060501-generic.
Preparing to unpack .../linux-headers-6.5.1-060501-generic_6.5.1-060501.202309020842_amd64.deb ...
Unpacking linux-headers-6.5.1-060501-generic (6.5.1-060501.202309020842) ...
Preparing to unpack .../linux-headers-6.5.1-060501_6.5.1-060501.202309020842_all.deb ...
Unpacking linux-headers-6.5.1-060501 (6.5.1-060501.202309020842) over (6.5.1-060501.202309020842) ...
Selecting previously unselected package linux-image-unsigned-6.5.1-060501-generic.
Preparing to unpack .../linux-image-unsigned-6.5.1-060501-generic_6.5.1-060501.202309020842_amd64.deb ...
Unpacking linux-image-unsigned-6.5.1-060501-generic (6.5.1-060501.202309020842) ...
Setting up linux-modules-6.5.1-060501-generic (6.5.1-060501.202309020842) ...
dpkg: dependency problems prevent configuration of linux-headers-6.5.1-060501-generic:
 linux-headers-6.5.1-060501-generic depends on libc6 (>= 2.38); however:
  Version of libc6:amd64 on system is 2.37-0ubuntu2.

dpkg: error processing package linux-headers-6.5.1-060501-generic (--install):
 dependency problems - leaving unconfigured
Setting up linux-headers-6.5.1-060501 (6.5.1-060501.202309020842) ...
Setting up linux-image-unsigned-6.5.1-060501-generic (6.5.1-060501.202309020842) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.4.14-060414-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-6.5.1-060501-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.5.1-060501-generic
Processing triggers for linux-image-unsigned-6.5.1-060501-generic (6.5.1-060501.202309020842) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.5.1-060501-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...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.5.1-060501-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.5.1-060501-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules....(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-6.5.1-060501-generic is not supported
Error! Bad return status for module build on kernel: 6.5.1-060501-generic (x86_64)
Consult /var/lib/dkms/nvidia/525.125.06/build/make.log for more information.
dkms autoinstall on 6.5.1-060501-generic/x86_64 failed for nvidia(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.5.1-060501-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-unsigned-6.5.1-060501-generic (--install):
 installed linux-image-unsigned-6.5.1-060501-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-headers-6.5.1-060501-generic
 linux-image-unsigned-6.5.1-060501-generic
mainline: done

答案1

我遇到了同样的问题。我必须将内核降级到之前的稳定版本 6.4.10,并且删除了已安装的 6.5.0。原因是 libc6 版本不同。

我建议您等待新的稳定的 libc6 版本。

或者

您必须自己编译内核才能安装它(对于非专业用户来说非常危险)。

答案2

我发现这篇文章讨论了这个问题链接文本。我研究过内核和系统升级,发现开源软件和其他软件发布的时间是关键。即 GPU 驱动程序和操作系统。例如,当系统升级可用时,GPU 专有驱动程序可能尚未适用于该版本。这可能会导致问题或性能下降,并且恢复起来可能很困难。在这些重大升级之前,请务必进行备份。

相关内容