Whenever I update my packages on my Ubuntu 20.04 Server installation with sudo apt-get upgrade
or install a new package with sudo apt-get install
, I get notified that there are 2 packages not fully installed. However, everytime I try to install them, once it starts running the update-initramfs tool, it encounters a segmentation fault.
Setting up initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.4.0-99-generic (5.4.0-99.112) ...
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-96-generic
Segmentation fault (core dumped)
E: mkinitramfs failure cpio 141 lz4 -9 -l 139
update-initramfs: failed for /boot/initrd.img-5.4.0-96-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-99-generic (5.4.0-99.112) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-99-generic
Segmentation fault (core dumped)
E: mkinitramfs failure cpio 141 lz4 -9 -l 139
update-initramfs: failed for /boot/initrd.img-5.4.0-99-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-99-generic (--configure):
installed linux-image-5.4.0-99-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
linux-image-5.4.0-99-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have tried sudo apt autoremove
, but I still get the same error. It doesn't seem to affect my system more than just adding a good 20 seconds to any install of packages. What can I do to resolve this issue, and is it important?