If you apply the patch below, apt upgrade including the kernel should complete successfully. This only applies to a system that has not previously experienced the kernel install fail.
sudo sed -i 's/^MODULES.*/MODULES=most/' /etc/initramfs-tools/initramfs.conf
If you already ran apt upgrade and the kernel install failed then try applying the patch followed by
sudo apt -y --reinstall install "linux-image-rpi-v8=1:6.12.62-1+rpt1" "linux-image-rpi-2712=1:6.12.62-1+rpt1"
Seems super Linux-nerdy but a lot of our users want to keep their systems fully updated outside of our own in-place update feature which only does moode packages and kernel upgrades. We generally support this but sometimes there are challenges
Dear Tim,
Thank you for responding. When I ran the two sudo commands above on a RPi4 that had reported the error previously. It reported errors again. I ran the update again after rebooting:
sudo apt-get update
sudo apt-get upgrade
The RPi4 hung and stopped responding to SSH.
The log is below:
Log Summary:
Upgrading: 0, Installing: 0, Reinstalling: 2, Removing: 0, Not Upgrading: 1
9 not fully installed or removed.
Space needed: 0 B / 53.4 GB available
Error: Internal Error, No file name for linux-image-rpi-2712:arm64
Moode3:~ $ sudo apt-get update
Hit:1
http://deb.debian.org/debian trixie InRelease
Get:2
http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
Get:3
http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
Get:4
http://archive.raspberrypi.com/debian trixie InRelease [54.8 kB]
Get:5
http://deb.debian.org/debian-security trixie-security/main armhf Packages [90.2 kB]
Get:6
http://deb.debian.org/debian-security trixie-security/main arm64 Packages [96.2 kB]
Get:7
http://deb.debian.org/debian-security trixie-security/main Translation-en [60.6 kB]
Get:8
https://dl.cloudsmith.io/public/moodeaudio/m8y/deb/raspbian trixie InRelease [11.7 kB]
Get:9
https://dl.cloudsmith.io/public/moodeaudio/m8y/deb/raspbian trixie/main armhf Packages [5,118 B]
Get:10
http://archive.raspberrypi.com/debian trixie/main armhf Packages [373 kB]
Get:11
https://dl.cloudsmith.io/public/moodeaudio/m8y/deb/raspbian trixie/main arm64 Packages [99.1 kB]
Get:12
http://archive.raspberrypi.com/debian trixie/main arm64 Packages [376 kB]
Fetched 1,258 kB in 2s (745 kB/s)
Reading package lists... Done
Moode3:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
caps moode-player
The following packages will be upgraded:
rpi-connect-lite rpi-eeprom
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
9 not fully installed or removed.
Need to get 12.8 MB of archives.
After this operation, 1,181 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1
http://archive.raspberrypi.com/debian trixie/main arm64 rpi-connect-lite arm64 2.7.0 [8,186 kB]
Get:2
http://archive.raspberrypi.com/debian trixie/main arm64 rpi-eeprom all 28.12-1 [4,625 kB]
Fetched 12.8 MB in 3s (4,045 kB/s)
Reading changelogs... Done
(Reading database ... 108530 files and directories currently installed.)
Preparing to unpack .../rpi-connect-lite_2.7.0_arm64.deb ...
Unpacking rpi-connect-lite (2.7.0) over (2.6.1) ...
Preparing to unpack .../rpi-eeprom_28.12-1_all.deb ...
Unpacking rpi-eeprom (28.12-1) over (28.10-1) ...
Setting up initramfs-tools (0.148.3+rpt2) ...
update-initramfs: deferring update (trigger activated)
Setting up rpi-connect-lite (2.7.0) ...
For Raspberry Pi OS Lite, enable user lingering for your user:
loginctl enable-linger
This allows users who are not logged in to run long-running services.
For information on getting started with Raspberry Pi Connect, please see the official documentation:
https://rptl.io/rpi-connect
Setting up rpi-eeprom (28.12-1) ...
Setting up linux-image-6.12.62+rpt-rpi-2712 (1:6.12.62-1+rpt1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.12.62+rpt-rpi-2712
'/boot/initrd.img-6.12.62+rpt-rpi-2712' -> '/boot/firmware/initramfs_2712'
/etc/kernel/postinst.d/z50-raspi-firmware:
'/boot/vmlinuz-6.12.62+rpt-rpi-2712' -> '/boot/firmware/kernel_2712.img'
Setting up linux-image-6.12.62+rpt-rpi-v8 (1:6.12.62-1+rpt1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.12.62+rpt-rpi-v8
---- time out -------
Reboot allowed Moode to restart.