升级到 23.04 后,我发现了与其他使用 linux-image-generic 的人相同的内核问题,但我的内核来自 ethernet-realtek-r8152。我该如何修复它?

升级到 23.04 后,我发现了与其他使用 linux-image-generic 的人相同的内核问题,但我的内核来自 ethernet-realtek-r8152。我该如何修复它?

我使用旧内核重新启动,尝试了 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
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.11/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.11/source/dkms.conf)
Error! The /var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.11/6.2.0-20-generic/x86_64/dkms.conf for module oem-ethernet-realtek-r8152-lp1806322-4.15-dkms includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
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
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.11/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.11/source/dkms.conf)
Error! The /var/lib/dkms/oem-ethernet-realtek-r8152-lp1806322-4.15-dkms/1.11/6.2.0-20-generic/x86_64/dkms.conf for module oem-ethernet-realtek-r8152-lp1806322-4.15-dkms includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
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

有办法解决这个问题吗?我犹豫着要不要移除模块。我担心我会无法访问互联网。(编辑:我通过 wifi 连接,但我不知道模块是做什么的。)谢谢!

相关内容