Debian 12, Error While Procesing Initramfs-Tools While Updating

Every time I update the system (with sudo apt update && sudo apt upgrade) I get an error that ends in:

Errors were encountered while processing:
 initramfs-tools

Searching someone sugested to use sudo apt-get auto-remove && apt-get clean && apt-get update && apt-get upgrade, which gives the same error, this is the complete output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-9-amd64
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

I just installed Debian 12, and I don't know where to find a solution. Just in case it helps, this is my sources.list:

deb  bookworm contrib main non-free non-free-firmware
deb-src  bookworm contrib main non-free non-free-firmware

deb  bookworm-updates contrib main non-free non-free-firmware
deb-src  bookworm-updates contrib main non-free non-free-firmware

deb  bookworm-proposed-updates contrib main non-free non-free-firmware
deb-src  bookworm-proposed-updates contrib main non-free non-free-firmware

deb  bookworm-backports contrib main non-free non-free-firmware
deb-src  bookworm-backports contrib main non-free non-free-firmware

deb  bookworm-security contrib main non-free non-free-firmware
deb-src  bookworm-security contrib main non-free non-free-firmware

deb  bookworm main non-free

Thanks in advance,

1 Answer

If you are not in a raspberry, move the script file that is causing problem to another place by running the command: sudo mv /etc/initramfs/post-update.d/z50-raspi-firmware ~/. (You can also delete the file, but i recommend moving just for security).

After that, sudo update-initramfs -u to update the Initramfs image.

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest