Pi 5 encountering same error over and over again when attempting to install packages

September 6, 2024, 03:45

e_xie

example:
pi@pi5:~ $ sudo apt update && sudo apt upgrade -y
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease                                  
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease                                            
Hit:4 https://Pi-Apps-Coders.github.io/box64-debs/debian ./ InRelease                                   
Hit:5 https://Pi-Apps-Coders.github.io/box86-debs/debian ./ InRelease                                   
Hit:6 http://archive.raspberrypi.com/debian bookworm InRelease   
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  i2c-tools libi2c0 librtimulib-dev librtimulib-utils librtimulib7 python3-rtimulib python3-sense-hat python3-smbus raspi-firmware read-edid
Use 'sudo apt autoremove' to remove them.
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 raspi-firmware (1:1.20240902-1) ...
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 error exit status 1
Processing triggers for initramfs-tools (0.142+deb12u1) ...
Errors were encountered while processing:
 raspi-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@pi5:~ $ 
don't know why this is happening - was working fine just a week ago. Using a SSD hat, pi 5, adequate cooling

e_xie

What I’ve tried:

e_xie

sudo apt-get install --reinstall raspi-firmware

e_xie

sudo update-initramfs -u

e_xie

sudo dpkg --configure -a

e_xie

all with similar or same error outputs

e_xie

dunno why the embed isn't being removed but whatever

jackdaw2387

To remove embeds you bake the URL in <like this>

oops.se

Error: missing /boot/firmware, did you forget to mount it?

e_xie

yeah i made the firmware directory

e_xie

still weirdly not working

oops.se

Output from df -h ?

e_xie

I rebooted the pi to see if it'll fix anything after the commands i tried and now it's just not booting, I might just flash the ssd and start afresh