dpkg: error processing package linux-image-amd64 (–configure)

Recently I installed new Debian 12 (KDE) from live image they have on their site, it was working fine until one upgrade to kernel came out. The error was like this:

dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-10-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:
linux-image-6.1.0-10-amd64
linux-image-amd64
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Initially I tried everything from force install to reconfigure the dpkg, but nothing worked out. I even tried to remove and purge the package too and results were still negative.

After looking at the complete error message I looked something fishy! It was raspi-firmware, since I am running the Linux on PC it looks not correct to me. This is a bug for sure.

You can read the bug report here for more information.

The temporary solution is to remove the unwanted files.

I just dig into the two exact locations below and deleted the z50-raspi-firmware.

First remove this.

sudo rm /etc/kernel/postinst.d/z50-raspi-firmware

Second remove this.

sudo rm /etc/kernel/postrm.d/z50-raspi-firmware

Now just simply try to update and upgrade the system.

Note that this is temporary solution and I cannot guarantee that it won’t happen again. That’s why I recommend you to install it again from Net Installer instead of Live Installer.

Hope this will help you.

Category: .

Leave a Reply

Your email address will not be published. Required fields are marked *