$ sudo apt upgrade
update-initramfs: Generating /boot/initrd.img-5.16.0-1-librem5
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
WARNING: Unknown X keysym "dead_belowmacron"
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-5.16.0-1-librem5 with 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:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
As good as i know, update-initramfs is transactional, meaning you should not be too concerned about a reboot. The point is, that your disc is full and you need to clean up.
Perhaps your upgrade process should have looked like this: sudo apt update sudo apt list --upgradable -a sudo apt list linux-image-librem5 sudo apt-get install linux-image-librem5 --assume-no sudo apt-get install linux-image-librem5 --yes sudo reboot uname -r sudo apt update sudo apt upgrade
But as of now you should try some other type of workaround to resolve your current issue, please try if this method (or similar one) might help, revert to your current Linux Kernel, curently used one, not the rebooted one: uname -r−− please take a look if 5.15.X-1-librem5 still over there (within /boot). sudo apt list linux-image-librem5 sudo dpkg --list | grep linux-image-librem5 sudo dpkg --configure -a sudo update-initramfs -c -k 5.15.X-1-librem5 sudo update-initramfs -u
Trying of: sudo update-initramfs -u might help right away but it might be somehow risky move as well, just not sure, don’t know.
NOTE: Didn’t test above but still considering your thread here as very important one. Actually, someone else, that still uses old 5.15.9pureos1 image, should take over from here (test my first chapter, within this post, proposed commands).
after this the sudo apt upgrade went fine and the device booted fine.
Why are the old initrd.img.... are keept? Which process should do the housekeeping there? The /boot partition remains 76% full and the problem could re-occure with next kernel update.
This looks as very best output to me. Meaning as well that the old two ones are gone now. Please repeat your previous command: df /boot in order to confirm that you have enough space within /boot partition for the next Linux Kernel upgrade. Thanks for this feedback!
The /boot remains 76% full and the file initrd.img-5.13.0-1-librem5 which I moved to /boot again, was not purged. I think, I will just move it away again.
I agree. I forgot to recommend to you sudo reboot, if this makes some adjustment for more space there. Anyway, before restarting your system please: sudo dpkg --configure -a sudo update-initramfs -u
EDIT: Because your initrd.img files looked indeed big to me, I just found this one: sudo update-initramfs -u -k all