Trying to install linux-headers-6.8.0-47-generic via system update constantly fails. The message:
I had exactly the same problem with the version before and it had obviously to do with dkms. So I deleted dkms and had no WLAN anymore. After setting up a cable connection I could update to 6.8.0-45 as expected. So I reinstalled dkms, but the WLAN still didn’t work until I reinstalled bcmwl-kernel-source. Problem was solved, but I don’t exactly wish to repeat this process with every new kernel version. How could I solve the problem more substantially? (The machine is a 2013 MacBook Pro with Kubuntu 24.4.)
This is what I get with ~$ sudo apt upgrade
And these are the current lines in /var/log/dpkg.log:
Code:
Package failed to install: Error while installing package: installed linux-headers-6.8.0-47-generic package post-installation script subprocess returned error exit status 11
This is what I get with ~$ sudo apt upgrade
Code:
Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: enblend enfuse hugin-data hugin-tools libaec0 libappstream4 libappstreamqt2 libgsl27 libgslcblas0 libhdf5-103-1t64 libhdf5-hl-100t64 libkf5plotting5 libpano13-3t64 libpano13-bin libsz2 libvigraimpex11 linux-modules-6.8.0-44-generic linux-modules-extra-6.8.0-44-generic mailcap plasma-runners-addons Use 'sudo apt autoremove' to remove them. Get more security updates through Ubuntu Pro with 'esm-apps' enabled: libcjson1 libavdevice60 ffmpeg libpostproc57 libavcodec60 libavutil58 libswscale7 libswresample4 libavformat60 libavfilter9 Learn more about Ubuntu Pro at https://ubuntu.com/pro The following upgrades have been deferred due to phasing: python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-qt 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up linux-image-6.8.0-47-generic (6.8.0-47.47) ... Setting up linux-headers-6.8.0-47-generic (6.8.0-47.47) ... /etc/kernel/header_postinst.d/dkms: * dkms: running auto installation service for kernel 6.8.0-47-generic Deprecated feature: REMAKE_INITRD (/var/lib/dkms/applespi/0.1/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/applespi/0.1/source/dkms.conf) Building module: Cleaning build area... make -j8 KERNELRELEASE=6.8.0-47-generic...(bad exit status: 2) ERROR (dkms apport): binary package for applespi: 0.1 not found Error! Bad return status for module build on kernel: 6.8.0-47-generic (x86_64) Consult /var/lib/dkms/applespi/0.1/build/make.log for more information. dkms autoinstall on 6.8.0-47-generic/x86_64 succeeded for broadcom-sta evdi dkms autoinstall on 6.8.0-47-generic/x86_64 failed for applespi(10) Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. * dkms: autoinstall for kernel 6.8.0-47-generic ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11 dpkg: error processing package linux-headers-6.8.0-47-generic (--configure): installed linux-headers-6.8.0-47-generic package post-installation script subprocess returned error exit status 11 dpkg: dependency problems prevent configuration of linux-headers-generic: linux-headers-generic depends on linux-headers-6.8.0-47-generic; however: Package linux-headers-6.8.0-47-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.8.0-47.47); however: Package linux-headers-generic is not configured yet. dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. No apport report written because the error message indicates its a followup error from a previous failure. Processing triggers for linux-image-6.8.0-47-generic (6.8.0-47.47) ... /etc/kernel/postinst.d/dkms: * dkms: running auto installation service for kernel 6.8.0-47-generic Deprecated feature: REMAKE_INITRD (/var/lib/dkms/applespi/0.1/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/applespi/0.1/source/dkms.conf) Building module: Cleaning build area... make -j8 KERNELRELEASE=6.8.0-47-generic...(bad exit status: 2) ERROR (dkms apport): binary package for applespi: 0.1 not found Error! Bad return status for module build on kernel: 6.8.0-47-generic (x86_64) Consult /var/lib/dkms/applespi/0.1/build/make.log for more information. dkms autoinstall on 6.8.0-47-generic/x86_64 succeeded for broadcom-sta evdi dkms autoinstall on 6.8.0-47-generic/x86_64 failed for applespi(10) Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. * dkms: autoinstall for kernel 6.8.0-47-generic ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 11 dpkg: error processing package linux-image-6.8.0-47-generic (--configure): installed linux-image-6.8.0-47-generic package post-installation script subprocess returned error exit status 11 No apport report written because MaxReports is reached already Errors were encountered while processing: linux-headers-6.8.0-47-generic linux-headers-generic linux-generic linux-image-6.8.0-47-generic E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
2024-10-24 21:18:45 startup packages configure 2024-10-24 21:18:45 configure linux-image-6.8.0-47-generic:amd64 6.8.0-47.47 <none> 2024-10-24 21:18:45 status half-configured linux-image-6.8.0-47-generic:amd64 6.8.0-47.47 2024-10-24 21:18:47 status installed linux-image-6.8.0-47-generic:amd64 6.8.0-47.47 2024-10-24 21:18:47 status triggers-pending linux-image-6.8.0-47-generic:amd64 6.8.0-47.47 2024-10-24 21:18:47 configure linux-headers-6.8.0-47-generic:amd64 6.8.0-47.47 <none> 2024-10-24 21:18:47 status half-configured linux-headers-6.8.0-47-generic:amd64 6.8.0-47.47 2024-10-24 21:18:50 trigproc linux-image-6.8.0-47-generic:amd64 6.8.0-47.47 <none> 2024-10-24 21:18:50 status half-configured linux-image-6.8.0-47-generic:amd64 6.8.0-47.47
Comment