
Hello everyone,
Recently, I encountered an error during a kernel update on my system (which is not a Raspberry Pi).
This error seems to occur because a script related to raspi-firmware is being executed during the kernel update process, and it's looking for the /boot/firmware directory, which is specific to Raspberry Pi systems and might not exist on other machines.
Here's how you can manage to resolve this issue by only one command in Terminal:
sudo mv /etc/initramfs/post-update.d//z50-raspi-firmware /etc/initramfs/post-update.d//z50-raspi-firmware.bak && sudo dpkg --purge raspi-firmware && sudo dpkg --remove --force-remove-reinstreq linux-image-6.1.0-32-amd64 && sudo dpkg --configure -a && sudo update-initramfs -u -k all && sudo apt install --reinstall linux-image-amd64