On Thu, 2019-09-26 at 07:55 +0000, [email protected] wrote: > Hi, > When update buster, it gives the following errors: > > Setting up linux-image-4.19.0-6-amd64 (4.19.67-2+deb10u1) ... > /etc/kernel/postinst.d/initramfs-tools: > update-initramfs: Generating /boot/initrd.img-4.19.0-6-amd64 > > gzip: stdout: No space left on device > E: mkinitramfs failure cpio 141 gzip 1 > update-initramfs: failed for /boot/initrd.img-4.19.0-6-amd64 with 1. > run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return > code 1 > dpkg: error processing package linux-image-4.19.0-6-amd64 (--configure): > installed linux-image-4.19.0-6-amd64 package post-installation script > subprocess returned error exit status 1 > Errors were encountered while processing: > linux-image-4.19.0-6-amd64 > E: Sub-process /usr/bin/dpkg returned an error code (1) > > Any ideas how to solve it? [...]
There are several things you can try:
* Remove outdated kernel packages with "apt autoremove"
* Expand the /boot partition (but it seems you already found this is
impossible)
* Exclude unneeded modules from the initramfs:
- Change the MODULES setting in /etc/initramfs-tools/initrams.conf
to MODULES=dep
- Run "update-initramfs -u"
If you do this, the disk probably won't be bootable if you move it to
another computer.
* Compress the initramfs harder:
- Change the COMPRESS setting in initramfs.conf to COMPRESS=xz
This will make kernel/initramfs updates very slow, though.
Ben.
--
Ben Hutchings
Beware of programmers who carry screwdrivers. - Leonard Brandwein
signature.asc
Description: This is a digitally signed message part

