I woke up this morning with exactly the same problem. After a bit of hyperventilation and first checks (Windows boots … all disks/SSDs are fine) and discovering that kernel 6.11 boots I landed here.
Root cause for me:
Looks like compilation of nvidia sources failed.
Found out via: sudo dpkg --configure -a(I might have done this more than once) encountered errors. Reading through the output, I finally noticed this:
Said log file indeed reported a compilation failure.
Fix for me:
After having noticed the hint above regarding AMD graphics and the linked bug report had mentioned that the corresponding driver did not support 6.14 “yet”, I was like … “maybe something similar for nvidia, and that has been fixed in the meantime?”
So, one hail mary and a sudo apt update && sudo apt upgrade ran through just fine now. sudo dpkg --configure -a also immediately came back with no output.
I will reboot my computer in two minutes and if no additional post of me appears, that will have fixed it.
mg@MGDesktopUnity:~$ sudo dpkg --configure -a
[sudo] password for mg:
Setting up linux-headers-6.14.0-24-generic (6.14.0-24.24~24.04.3) …
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.14.0-24-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won’t be signed
Building module:
Cleaning build area…
make -j8 KERNELRELEASE=6.14.0-24-generic KVER=6.14.0-24-generic…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.14.0-24-generic (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dkms autoinstall on 6.14.0-24-generic/x86_64 succeeded for virtualbox
dkms autoinstall on 6.14.0-24-generic/x86_64 failed for broadcom-sta(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel 6.14.0-24-generic
…fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.14.0-24-generic (–configure):
installed linux-headers-6.14.0-24-generic package post-installation script subprocess returned error exit status 11
Setting up linux-image-6.14.0-24-generic (6.14.0-24.24~24.04.3) …
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
linux-headers-generic-hwe-24.04 depends on linux-headers-6.14.0-24-generic; however:
Package linux-headers-6.14.0-24-generic is not configured yet.
dpkg: error processing package linux-headers-generic-hwe-24.04 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 6.14.0-24.24~24.04.3); however:
Package linux-headers-generic-hwe-24.04 is not configured yet.
dkms: running auto installation service for kernel 6.14.0-24-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won’t be signed
Building module:
Cleaning build area…
make -j8 KERNELRELEASE=6.14.0-24-generic KVER=6.14.0-24-generic…(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/broadcom-sta-dkms.0.crash’
Error! Bad return status for module build on kernel: 6.14.0-24-generic (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dkms autoinstall on 6.14.0-24-generic/x86_64 succeeded for virtualbox
dkms autoinstall on 6.14.0-24-generic/x86_64 failed for broadcom-sta(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel 6.14.0-24-generic
…fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.14.0-24-generic (–configure):
installed linux-image-6.14.0-24-generic package post-installation script subprocess returned error exit status 11
Errors were encountered while processing:
linux-headers-6.14.0-24-generic
linux-headers-generic-hwe-24.04
linux-generic-hwe-24.04
linux-image-6.14.0-24-generic
mg@MGDesktopUnity:~$
Well, the output from sudo dpkg --configure -a is comprehensive and detailed.
Regrettably, I do not know how to successfully repair the misconfigured kernel.
However, allow me to offer some suggestions.
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04
This is probably where the problems begin and, I suspect, the other errors are a consequence of the misconfigured kernel
Various options present themselves:-
(a) Investigate each part of the output and see if they can be fixed.
(b) Remove all parts of kernel 6.14.0-24. Then, test to see if it re-installs without error.
(c) Do nothing - continue to use kernel 6.11.0.29 and wait for a future kernel to see if it is OK.
To answer my own questions (imagining if I am using your PC)
(a) Too tedious and complicated. Fix one error and possibly introduce another dilemma.
Too much research and effort with little promise of a guaranteed reward.
(b) I would try this because you never know?
Also, this is on the radar.
(c) I’ve experienced a kernel, where my hardware gave me issues.
I had to wait a few months before a error-free kernel arrived.
In the meantime, like you, I used an earlier kernel.
My final piece of advice is backup your personal files before making a decision.
If you wish to try suggestion (b), I can post some command instructions, which may (or may not) help.
dkms autoinstall on 6.14.0-24-generic/x86_64 failed for broadcom-sta(10)
This is a problem. Not sure if it’s the root cause but it should certainly not result in an unbootable system. Do you need this? lspci -k and lsmod should show if it’s in use.
mg@MGDesktopUnity:~$ sudo /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
[sudo] password for mg:
sudo: /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log: command not found
This brought in a revised kernel 6.14.0–27, replacing 6.14.0-24. (I now have 3 Kernels).
I crossed my fingers and booted - sadly same old Kernel Panic.
I’m still working on my Kernel Panic Issue as I reported back in early
August. When I boot with a newer Kernel (6.14) I get an immediate “Kernel Panic” error and my system halts. When I boot with an older Kernel (6.11) all is AOK.
Since I don’t want to lose my older Kernel 6.11, I do OS updates through Konsole:
sudo apt update && sudo apt upgrade
This is what I get:
dkms autoinstall on 6.14.0-27-generic/x86_64 failed for broadcom-sta(10)
Error! One or more modules failed to install during autoinstall.
dkms: autoinstall for kernel 6.14.0-27-generic …fail!
dpkg: error processing package linux-image-6.14.0-27-generic (–configure):
installed linux-image-6.14.0-27-generic package post-installation script subprocess returned error
exit status 11
No apport report written because MaxReports is reached already
It appears that Broadcom is causing my grief. I tried installing a new Broadcom driver:
sudo apt install broadcom-sta-dkms
and I get:
broadcom-sta-dkms is already the newest version (6.30.223.271-23ubuntu1)
(Note I also tried clearing MaxReports:
sudo rm /var/crash/*
But the MaxReports error still persists.)
I have no idea what the problem with Broadcom is, as the Wifi on my system works just fine.