Fix error - processing package linux-headers-6.0.0-kali6-amd64 (--configure)
Issue:
Setting up linux-headers-6.0.0-kali6-amd64 (6.0.12-1kali1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.0.0-kali6-amd64:Deprecated feature: REMAKE_INITRD (/var/lib/dkms/8814au/5.8.5.1/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.6.4.1/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.0/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/8814au/5.8.5.1/source/dkms.conf)
Building module:
Cleaning build area...
'make' -j8 KVER=6.0.0-kali6-amd64 KSRC=/lib/modules/6.0.0-kali6-amd64/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.0-kali6-amd64 (x86_64)
Consult /var/lib/dkms/8814au/5.8.5.1/build/make.log for more information.
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/linux-kbuild-6.0/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8812au/5.6.4.1/source/dkms.conf)
Building module:
Cleaning build area...
'make' -j8 KVER=6.0.0-kali6-amd64 KSRC=/lib/modules/6.0.0-kali6-amd64/build.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.0-kali6-amd64 (x86_64)
Consult /var/lib/dkms/rtl8812au/5.6.4.1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.0.0-kali6-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.0.0-kali6-amd64 (--configure):
installed linux-headers-6.0.0-kali6-amd64 package post-installation script subprocess returned error exit status 1
Solution: Perform below command on Kali terminal window.
sudo apt-get remove dkms
sudo apt --fix-broken install
sudo apt autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt install linux-headers-6.0.0-kali6-amd64
Refer to:
标签:amd64,lib,package,error,kali6,6.0,var,dkms From: https://www.cnblogs.com/keepmoving1113/p/17093498.html