package linux-headers-6.8.0-40-generic 6.8.0-40.40 failed to install/upgrade: installed linux-headers-6.8.0-40-generic package post-installation script subprocess returned error exit status 11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Philip Cox |
Bug Description
dpkg: error processing package linux-image-
installed linux-image-
No apport report written because MaxReports is reached already
linux-
linux-
linux-
linux-
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: linux-headers-
ProcVersionSign
Uname: Linux 6.8.0-39-generic x86_64
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/seq: nwielocha 2315 F.... pipewire
/dev/snd/
CRDA: N/A
CasperMD5CheckR
Date: Thu Aug 8 14:38:46 2024
ErrorMessage: installed linux-headers-
InstallationDate: Installed on 2024-06-06 (63 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Lsusb-t:
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 480M
/: Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
MachineType: Apple Inc. MacBookPro14,1
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=
Python3Details: /usr/bin/
PythonDetails: N/A
RelatedPackageV
SourcePackage: linux
Title: package linux-headers-
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/15/2023
dmi.bios.release: 0.1
dmi.bios.vendor: Apple Inc.
dmi.bios.version: 526.0.0.0.0
dmi.board.name: Mac-B4831CEBD52
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro14,1
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAppleInc
dmi.product.family: MacBook Pro
dmi.product.name: MacBookPro14,1
dmi.product.
dmi.sys.vendor: Apple Inc.
Hi Nicolas, thank you for taking the time to open this bug report.
After going through all the logs provided, it appears that this is being caused by one of the out-of-tree kernel modules that you have installed.
When the kernel headers are being installed, one of the last steps is to rebuild all of the dkms modules that are installed, and this is what is failing.
In the DpkgTerminalLog.txt file, towards the end is this:
------- ------- ------- ------- ------- ------ 6.8.0-40- generic. ..(bad exit status: 2) dkms/applespi/ 0.1/build/ make.log for more information. generic/ x86_64 failed for applespi(10) header_ postinst. d/dkms exited with return code 11 6.8.0-40- generic (--configure): 6.8.0-40- generic package post-installation script subprocess returned error exit status 11 ------- ------- ------- ------- ------
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=
ERROR (dkms apport): binary package for applespi: 0.1 not found
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/
dkms autoinstall on 6.8.0-40-
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.8.0-40-generic
...fail!
run-parts: /etc/kernel/
error processing package linux-headers-
installed linux-headers-
-------
Perhaps one of the dkms packages doesn't support the newer kernel. If you remove the dkms modules from the system, and then install the headers you should not hit this issue.
If you still hit this issue with all the out of tree dkms packages removed, please re-open this ticket and upload the logs again, and I will take another look.