It seems the header packages have a configuration error in the script. I tried to reinstall the header package to no avail. Details below.
Error! Bad return status for module build on kernel: 6.14.0-24-generic (x86_64)
Consult /var/lib/dkms/rtl88x2bu/git/build/make.log for more information.
dkms autoinstall on 6.14.0-24-generic/x86_64 succeeded for openrazer-driver virtualbox
dkms autoinstall on 6.14.0-24-generic/x86_64 failed for rtl88x2bu(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
- dkms: autoinstall for kernel 6.14.0-24-generic
…fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.14.0-24-generic (–configure):
installed linux-headers-6.14.0-24-generic package post-installation script subprocess returned error exit status 11
Setting up linux-image-6.14.0-24-generic (6.14.0-24.24~24.04.3) …
I: /boot/initrd.img.old is now a symlink to initrd.img-6.14.0-24-generic
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
linux-headers-generic-hwe-24.04 depends on linux-headers-6.14.0-24-generic; however:
Package linux-headers-6.14.0-24-generic is not configured yet.
dpkg: error processing package linux-headers-generic-hwe-24.04 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.14.0-24.24~24.04.3); however:
Package linux-headers-generic-hwe-24.04 is not configured yet.
dpkg: error processing package linux-generic-hwe-24.04 (–configure):
dependency problems - leaving unconfigured
Processing triggers for linux-image-6.14.0-24-generic (6.14.0-24.24~24.04.3) …
/etc/kernel/postinst.d/dkms:
- dkms: running auto installation service for kernel 6.14.0-24-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’ -j12 KVER=6.14.0-24-generic KSRC=/lib/modules/6.14.0-24-generic/build…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.14.0-24-generic (x86_64)
Consult /var/lib/dkms/rtl88x2bu/git/build/make.log for more information.
dkms autoinstall on 6.14.0-24-generic/x86_64 succeeded for openrazer-driver virtualbox
dkms autoinstall on 6.14.0-24-generic/x86_64 failed for rtl88x2bu(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
- dkms: autoinstall for kernel 6.14.0-24-generic
…fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.14.0-24-generic (–configure):
installed linux-image-6.14.0-24-generic package post-installation script subprocess returned error exit status 11
Errors were encountered while processing:
linux-headers-6.14.0-24-generic
linux-headers-generic-hwe-24.04
linux-generic-hwe-24.04
linux-image-6.14.0-24-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)