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:
-----------------------------------------
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.8.0-40-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-40-generic (x86_64)
Consult /var/lib/dkms/applespi/0.1/build/make.log for more information.
dkms autoinstall on 6.8.0-40-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-40-generic
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
error processing package linux-headers-6.8.0-40-generic (--configure):
installed linux-headers-6.8.0-40-generic package post-installation script
subprocess returned error exit status 11
-----------------------------------------
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.
** Changed in: linux (Ubuntu)
Assignee: (unassigned) => Philip Cox (philcox)
** Changed in: linux (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2076343
Title:
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
Status in linux package in Ubuntu:
Invalid
Bug description:
dpkg: error processing package linux-image-6.8.0-40-generic (--configure):
installed linux-image-6.8.0-40-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-40-generic
linux-headers-generic
linux-headers-generic-hwe-24.04
linux-generic-hwe-24.04
linux-image-6.8.0-40-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 24.04
Package: linux-headers-6.8.0-40-generic 6.8.0-40.40
ProcVersionSignature: Ubuntu 6.8.0-39.39-generic 6.8.8
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/controlC0: nwielocha 2320 F.... wireplumber
CRDA: N/A
CasperMD5CheckResult: pass
Date: Thu Aug 8 14:38:46 2024
ErrorMessage: installed linux-headers-6.8.0-40-generic package
post-installation script subprocess returned error exit status 11
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=xhci_hcd/12p, 480M
/: 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=/boot/vmlinuz-6.8.0-39-generic
root=UUID=f3234543-a36b-477d-95d6-f611560035b8 ro quiet splash vt.handoff=7
Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal,
3.12.3-0ubuntu1
PythonDetails: N/A
RelatedPackageVersions: grub-pc N/A
SourcePackage: linux
Title: 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
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-B4831CEBD52A0C4C
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro14,1
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-B4831CEBD52A0C4C
dmi.modalias:
dmi:bvnAppleInc.:bvr526.0.0.0.0:bd11/15/2023:br0.1:svnAppleInc.:pnMacBookPro14,1:pvr1.0:rvnAppleInc.:rnMac-B4831CEBD52A0C4C:rvrMacBookPro14,1:cvnAppleInc.:ct9:cvrMac-B4831CEBD52A0C4C:sku:
dmi.product.family: MacBook Pro
dmi.product.name: MacBookPro14,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2076343/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp