Raspberry Pi upgrade gone wrong – cannot read file system information for ‘/boot/firmware’: No such file or directory
in Categories: Linux, Raspberry Pi.
1 minute read
Today, all of a sudden, our Raspberry Pi gave us the following warning, when running the sudo apt update && sudo apt upgrade:
Setting up raspi-firmware (1:1.20250430-4~bookworm) ...
stat: cannot read file system information for '/boot/firmware': No such file or
directory
Error: missing /boot/firmware, did you forget to mount it?
dpkg: error processing package raspi-firmware (--configure):
installed raspi-firmware package post-installation script subprocess returned e
rror exit status 1
dpkg: dependency problems prevent configuration of sense-hat:
sense-hat depends on raspi-firmware; however:
Package raspi-firmware is not configured yet.
dpkg: error processing package sense-hat (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.142+rpt4+deb12u3) ...
Errors were encountered while processing:
raspi-firmware
sense-hat
E: Sub-process /usr/bin/dpkg returned an error code (1)
As you can see on the following error message:
stat: cannot read file system information for '/boot/firmware': No such file or
directory
Basically, here is how to fix things:
sudo mkdir -p /boot/firmware
sudo mount --bind /boot /boot/firmware
Then:
sudo dpkg --configure -a
After this, reboot your Raspberry Pi.