Score:0

Update-initramfs Segmentation fault When Upgrading

in flag

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?

nobody avatar
gh flag
please [edit] your question and add `df -h;df -i` also `dkms status` (if your system says command not found forget dkms. `dpkg -l | egrep linux-'[g|h|i|m]'` and `apt-mark showmanual egrep linux-'[g|h|i|m]'`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.