Problem Description
After 6 months of not being able to have my device on, I’ve finally set it up again and tried to update, but it continuously fails.
Removing linux-image-6.1.0-28-arm64 (6.1.119-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-28-arm64
/etc/kernel/postrm.d/z50-raspi-firmware:
cp: error writing '/boot/firmware/initrd.img-6.1.0-37-arm64': No space left on device
run-parts: /etc/kernel/postrm.d/z50-raspi-firmware exited with return code 1
dpkg: error processing package linux-image-6.1.0-28-arm64 (--remove):
installed linux-image-6.1.0-28-arm64 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-6.1.0-28-arm64
Processing was halted because there were too many errors.
Config is in use.
Illegal snapshot.
Config is in use.
E:Sub-process /usr/bin/dpkg returned an error code (1)
Much like these two:
it seems to be due to an accumulation of linux-images. However unlike those, I can’t seem to remove the offending images with sudo apt autoremove or sudo apt purge linux-image-6.1.0-28-arm64
$ uname -r
6.1.0-29-arm64
$ uname -a
Linux freedombox 6.1.0-29-arm64 #1 SMP Debian 6.1.123-1 (2025-01-02) aarch64 GNU/Linux
$ sudo dpkg -l '*linux-image*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================================-============-============-==============================================
ii linux-image-6.1.0-25-arm64 6.1.106-3 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
un linux-image-6.1.0-25-arm64-unsigned <none> <none> (no description available)
rH linux-image-6.1.0-28-arm64 6.1.119-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
un linux-image-6.1.0-28-arm64-unsigned <none> <none> (no description available)
ii linux-image-6.1.0-29-arm64 6.1.123-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
un linux-image-6.1.0-29-arm64-unsigned <none> <none> (no description available)
iF linux-image-6.1.0-37-arm64 6.1.140-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
un linux-image-6.1.0-37-arm64-unsigned <none> <none> (no description available)
iU linux-image-arm64 6.1.140-1 arm64 Linux for 64-bit ARMv8 machines (meta-package)
un linux-image-generic <none> <none> (no description available)
$ sudo apt purge linux-image-6.1.0-28-arm64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
linux-image-6.1.0-28-arm64
0 upgraded, 0 newly installed, 1 to remove and 133 not upgraded.
3 not fully installed or removed.
After this operation, 357 MB disk space will be freed.
Do you want to continue? [Y/n]
quota not working (qgroup not set)
(Reading database ... 118376 files and directories currently installed.)
Removing linux-image-6.1.0-28-arm64 (6.1.119-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-28-arm64
/etc/kernel/postrm.d/z50-raspi-firmware:
cp: error writing '/boot/firmware/initrd.img-6.1.0-37-arm64': No space left on device
run-parts: /etc/kernel/postrm.d/z50-raspi-firmware exited with return code 1
dpkg: error processing package linux-image-6.1.0-28-arm64 (--remove):
installed linux-image-6.1.0-28-arm64 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-6.1.0-28-arm64
Processing was halted because there were too many errors.
Config is in use.
E: Sub-process /usr/bin/dpkg returned an error code (1)
I’m not used to debian, and I’m rather afraid of fumbling my way into deleting the linux it’s currently using. Where do I go from here?
Information
- FreedomBox version: 25.1
- Hardware: Raspberry Pi 3 Model B
- How did you install FreedomBox?: Downloaded image from the website and installed on a microsd