The kernel headers are innocent here - your DpkgTerminalLog shows it's an old DKMS module causing the drama :-)
During the header installation, /etc/kernel/header_postinst.d/dkms tries to autoinstall all registered modules. It choked on “nvidia-535” because the patch “nv-vtophys-explicit-void-cast.patch” failed to apply against 6.8.0-138, which exited with status 11 and locked up apt. Looking at your Lspci.txt, your Lenovo IdeaPad Flex 5 is running on Intel Iris Xe graphics with no discrete Nvidia GPU anyway. To unstick apt and finish setting up the kernel headers: 1- Purge the leftover Nvidia DKMS module: sudo apt purge nvidia-dkms-535 2- Finish configuring the pending packages: sudo dpkg --configure -a 3- Run upgrade cleanly: sudo apt update && sudo apt upgrade Your 6.8.0-138 headers will configure with zero issues! yohoo ;-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2166169 Title: package linux-headers-6.8.0-138-generic 6.8.0-138.138 failed to install/upgrade: installed linux-headers-6.8.0-138-generic package post-installation script subprocess returned error exit status 11 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2166169/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
