Upgrade to 20.04 LTS errors - mkinitramfs failure cpio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
At the end of the upgrade process to 20.04 I got a message about mkinitramfs. It said I should consider submitting a bug.
Now after a re-boot I get:
$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.136ubuntu6) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.136ubuntu6) ...
update-initramfs: Generating /boot/initrd.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned erro
r exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ lsb_release -rd
Description: Ubuntu 20.04 LTS
Release: 20.04
$ apt-cache policy initramfs-tools
initramfs-tools:
Installed: 0.136ubuntu6
Candidate: 0.136ubuntu6
Version table:
*** 0.136ubuntu6 500
500 http://
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: initramfs-tools 0.136ubuntu6
ProcVersionSign
Uname: Linux 5.4.0-28-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sun May 3 02:11:32 2020
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-11-16 (1994 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitec
SourcePackage: initramfs-tools
UpgradeStatus: Upgraded to focal on 2020-05-03 (0 days ago)
This fixed my problem:
sudo apt purge linux-image- 4.15.0- 99-generic
from: /askubuntu. com/questions/ 1207958/ error-24- write-error- cannot- write-compresse d-block
https:/
Usually if it's a freespace thing, I'll get a popup about /boot not having enough space. That happened during upgrade process, but I wasn't able to purge old space, and it hasn't happened since finishing the upgrade.
There is usually enough space for the current and previous kernel in /boot as well.