Ubuntu Version: 24.04.3
Desktop Environment: GNOME
Hardware: Macbook air (2015)
Problem Description:
I Installed Ubuntu 24.04 on my old Macbook almost a year ago. I have been using it almost daily and updating without problems since then.
I updated today using the software updater and it indicated a problem of an incomplete update. Unfortunately I did not keep the original message.
I therefore went to do the update again through the terminal to see what was happening.
roland@Ubuntu-mac:~$ sudo apt update
[sudo] password for roland:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:5 https://cloud.r-project.org/bin/linux/ubuntu noble-cran40/ InRelease
Hit:6 http://linux.dropbox.com/ubuntu noble InRelease
Hit:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:8 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Hit:9 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Hit:10 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
roland@Ubuntu-mac:~$ apt list --upgradable
Listing... Done
alsa-ucm-conf/noble-updates,noble-updates 1.2.10-1ubuntu5.9 all [upgradable from: 1.2.10-1ubuntu5.8]
N: There are 2 additional versions. Please use the '-a' switch to see them.
roland@Ubuntu-mac:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
alsa-ucm-conf
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
4 not fully installed or removed.
As you can see it notes that there are 4 not fully installed packages
the update continued and I got the following error messages:
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
Setting up linux-headers-6.17.0-14-generic (6.17.0-14.14~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.17.0-14-generic KVER=6.17.0-14-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.17.0-14-generic (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dkms autoinstall on 6.17.0-14-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.17.0-14-generic
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.17.0-14-generic (--configure):
installed linux-headers-6.17.0-14-generic package post-installation script subprocess returned erro
r exit status 11
dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-24.04:
linux-headers-generic-hwe-24.04 depends on linux-headers-6.17.0-14-generic; however:
Package linux-headers-6.17.0-14-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.17.0-14.14~24.04.1); howeve
r:
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.17.0-14-generic (6.17.0-14.14~24.04.1) ...
No apport report written because the error message indicates it's a follow-up error from a previous
failure.
No apport report written because the error message indicates it's a follow-up error from a p
revious failure.
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 6.17.0-14-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.17.0-14-generic KVER=6.17.0-14-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.17.0-14-generic (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dkms autoinstall on 6.17.0-14-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.17.0-14-generic
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.17.0-14-generic (--configure):
installed linux-image-6.17.0-14-generic package post-installation script subprocess returned error
exit status 11
No apport report written because MaxReports has already been reached
Errors were encountered while processing:
linux-headers-6.17.0-14-generic
linux-headers-generic-hwe-24.04
linux-generic-hwe-24.04
linux-image-6.17.0-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I then restarted the system to see if this would sort itself out and got:
KERNEL PANIC!
Please reboot your computer.
VFS: Unable to mount root fs on unknown-block(0,0)
Restarting the computer gave the same message.
I then tried restarting and accessing the GRUB menu.
It gave me GNU GRUB version 2.12
I chose advanced options for Ubuntu
which showed:
Ubuntu, with Linux 6.17.0-14 generic
Ubuntu, with Linux 6.17.0-14 generic (recovery mode)
Ubuntu, with Linux 6.14.0-37 generic
Ubuntu, with Linux 6.14.0-37 generic (recovery mode)
When I tried to boot with the first two it took me to the Kernel Panic, but when I booted with 6.14.0-37 it booted normally and everything worked well. The problem is that I can now only boot through the GRUB menu.
I would like to know how to either delete or repair the Linux 6.17.0-14.
Any suggestions welcome. Thank you