ubuntu 20.04 LTS apt autoremove error

Processing triggers for initramfs-tools (0.136ubuntu6.7) …
update-initramfs: Generating /boot/initrd.img-5.4.0-109-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vg-lv_swap)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed blockSetting up initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-109-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/vg-lv_swap)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.4.0-109-generic 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)

Solution:

sudo update-initramfs -u -k all

Leave a Reply

Your email address will not be published. Required fields are marked *