Intel ARC intel-i915-dkms dpkg 升级到 HWE 内核 6.5 时出错

Intel ARC intel-i915-dkms dpkg 升级到 HWE 内核 6.5 时出错

每当我尝试安装某些东西时,它都会返回此错误:

dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.5.0-17-generic; however:
  Package linux-headers-6.5.0-17-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
Setting up libegl-mesa0:amd64 (24.1~git2402200600.41cd32~oibaf~m) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                   Setting up libegl-mesa0:i386 (24.1~git2402200600.41cd32~oibaf~m) ...
Setting up libglx-mesa0:amd64 (24.1~git2402200600.41cd32~oibaf~m) ...
Setting up libglx-mesa0:i386 (24.1~git2402200600.41cd32~oibaf~m) ...
Processing triggers for libc-bin (2.38-1ubuntu6.1) ...
Errors were encountered while processing:
 linux-headers-6.5.0-17-generic
 linux-headers-generic
E: Sub-process /usr/bin/dpkg returned an error code (1) 

我也无法从 .deb 安装,它返回错误“无法满足依赖关系”

运行sudo dpkg --configure -a ; sudo apt install -f结果如下:

Setting up linux-headers-6.5.0-17-generic (6.5.0-17.17) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.5.0-17-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...
cp defconfigs/i915_only .config; 'make' -j22 KLIB=/lib/modules/6.5.0-17-generic olddefconfig; 'make' -j22 KLIB=/lib/modules/6.5.0-17-generic.....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/intel-i915-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-17-generic (x86_64)
Consult /var/lib/dkms/intel-i915-dkms/1.23.9.11.231003.15/build/make.log for more information.
dkms autoinstall on 6.5.0-17-generic/x86_64 failed for intel-i915-dkms(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.5.0-17-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.5.0-17-generic (--configure):
 installed linux-headers-6.5.0-17-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.5.0-17-generic; however:
  Package linux-headers-6.5.0-17-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-6.5.0-17-generic
 linux-headers-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-headers-6.5.0-17-generic (6.5.0-17.17) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.5.0-17-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...
cp defconfigs/i915_only .config; 'make' -j22 KLIB=/lib/modules/6.5.0-17-generic olddefconfig; 'make' -j22 KLIB=/lib/modules/6.5.0-17-generic....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/intel-i915-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-17-generic (x86_64)
Consult /var/lib/dkms/intel-i915-dkms/1.23.9.11.231003.15/build/make.log for more information.
dkms autoinstall on 6.5.0-17-generic/x86_64 failed for intel-i915-dkms(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.5.0-17-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.5.0-17-generic (--configure):
 installed linux-headers-6.5.0-17-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.5.0-17-generic; however:
  Package linux-headers-6.5.0-17-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                   Errors were encountered while processing:
 linux-headers-6.5.0-17-generic
 linux-headers-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

您混合使用了错误的内核版本 (6.5 HWE 与 5.x 非 HWE) 和 intel-i915-dkms 内核模块。它仅对 5.x 内核是必需的,并且与 5.x 内核兼容。

sudo -i

dpkg --force-all -P intel-i915-dkms
dpkg --configure -a

apt update
apt install -f
apt upgrade
apt dist-upgrade

apt purge intel-i915-dkms
apt purge dkms
apt autopurge
apt clean

更新后的 i915 模块应默认包含在 6.5 中。如果您没有 Intel ARC,则可以跳过此步骤。重新启动并检查您的 GPU 在游戏中是否仍然很快。如果不是,我们可以回滚到 5.x:

# Only necessary if your Intel ARC doesn't work without intel-i915-dkms.
# If your GPU works fine now,
# then skip this and remove the added Intel repository instead.

sudo -i

apt install linux-generic
apt purge linux-generic-hwe-22.04
apt autopurge
apt install intel-i915-dkms
reboot

相关内容