Kernel Panic

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:

unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 ‘make’ -j12 NV_EXCLUDE_BUILD_MODULES=‘’ KERNEL_UNAME=6.14.0-24-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.14.0-24-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules…(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/nvidia-kernel-source-550.0.crash’

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.

sudo apt-get install -f did not fix the “IF” flag on kernel 6.14.

What do you mean “purge & Reinstall” ? Wouldn’t it be better to wait for an update to kernel 6.14 ?

Thanks,
M…

You ran both these commands?

sudo dpkg --configure -a
sudo apt-get install -f

If the configuration is broken waiting for an update will likely not help.

Purge and reinstall means remove and then install again.

But if you have a working kernel, do you need this one?

I tend to agree but how do you explain why the old 6.11 Kernel works.

How to go about and find the ‘misconfigured package’ ? I checked my Broadcom driver - it is the latest version.

So what to do now - just wait and hope the next Kernel will be okay ?

Thanks for all the input,
M…

It has been identified in post 30

Did you run this command?

sudo dpkg --configure -a

Any output from the terminal?

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.

dpkg: error processing package linux-generic-hwe-24.04 (–configure):
dependency problems - leaving unconfigured
Processing triggers for linux-image-6.14.0-24-generic (6.14.0-24.24~24.04.3) …
/etc/kernel/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: 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:~$

Thanks,
M…

Hi.

RE: LINUX Mint 22.1 xia

I’m not running Linux Mint - I’m running Ubuntu Unity.

I’m not using AMD gpu.

Thanks,
M…

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.

1 Like

@mikegreen8
Kernel 6.14.0-27 arrived today (29 July 2025)

It’s better to not upgrade via the GUI because you may lose your working kernel.
Use the terminal:-

sudo apt update
sudo apt upgrade

If the new kernel is installed, your working kernel becomes the third choice and is automatically removed via the GUI (Software Updater)

Please refer to my post no. 28

@mikegreen8

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.

Hm. Compiles fine for me:

$ dkms status
broadcom-sta/6.30.223.271, 6.11.0-21-generic, x86_64: installed
broadcom-sta/6.30.223.271, 6.14.0-24-generic, x86_64: installed
broadcom-sta/6.30.223.271, 6.14.0-27-generic, x86_64: installed
broadcom-sta/6.30.223.271, 6.8.0-71-generic, x86_64: installed

Can you post /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log?

I will wait for the next Kernel.

Thanks,
M…

I will NOT use the GUI to update until this is resolved.
Thanks,
M…

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

M…

It’s a file:

sudo cat /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log

Have you tried this?

I did OS updates in Konsole instead of the GUI:

sudo apt update
sudo apt upgrade

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’ll keep at it.

Thanks,
M…

There is another recent (similar) topic mentioning missing kernel packages following an update.
May be worth investigating?

If you run this command, it should list the kernel packages (together with the status prefix e.g. ii)
dpkg --list | grep 6.14.0-27

I tried:

sudo dpkg --configure -a

to no avail, then:

sudo apt-get install -f

to no avail:

dpkg -l | grep linux-image rc linux-image -6.11.0-17-generic 6.11.0-17.17~24.04.2 a `md64
Signed kernel image generic

rc linux-image -6.11.0-21-generic
6.11.0-21.21~24.04.1+1
a md64
Signed kernel image generic

rc linux-image -6.11.0-24-generic
6.11.0-24.24~24.04.1
a md64
Signed kernel image generic

rc linux-image -6.11.0-25-generic
6.11.0-25.25~24.04.1
a md64
Signed kernel image generic

rc linux-image -6.11.0-26-generic
6.11.0-26.26~24.04.1
a md64
Signed kernel image generic

rc linux-image -6.11.0-28-generic
6.11.0-28.28~24.04.1
a md64
Signed kernel image generic

ii linux-image -6.11.0-29-generic
6.11.0-29.29~24.04.1
a md64
Signed kernel image generic

iF linux-image -6.14.0-24-generic
6.14.0-24.24~24.04.3
a md64
Signed kernel image generic

iF linux-image -6.14.0-27-generic
6.14.0-27.27~24.04.1
a md64
Signed kernel image generic

ii linux-image -generic-hwe-24.04
6.14.0-27.27~24.04.1
a md64
Generic Linux kernel image`

How to "purge and reinstall ?

Thanks,
M…

This topic was automatically closed after 39 days. New replies are no longer allowed.

Ubuntu Unity 24.04 & Broadcom BCM4352 802.11ac Wireless Network Adapter

Hi.

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.

So what to do ??

Thanks,
M…