package linux-image-5.11.0-38-generic 5.11.0-38.42~20.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
System error reported - while reading webpage. last login in last 10 minutes, so possibly an auto update.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
uname -a
Linux alistair-
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.11.0-37-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
Date: Wed Oct 20 13:55:09 2021
ErrorMessage: run-parts: /etc/kernel/
InstallationDate: Installed on 2020-11-12 (342 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python3.8, Python 3.8.10, python-is-python3, 3.8.2-4
RelatedPackageV
dpkg 1.19.7ubuntu3
apt 2.0.6
SourcePackage: initramfs-tools
Title: package linux-image-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Identified that the command :
update-initramfs: Generating /boot/initrd. img-5.11. 0-38-generic
required approx 88M of disk space on /boot, but I only had 73M: ubuntu_ l3g9y7 286M 213M 73M 75% /boot
df -h /boot
bpool/BOOT/
Problem resolved by manually running zsys garbage collection (laptop, so scheduled jobs are unable to run when the laptop is off/hybernating.
To demonstrate, use "zsysctl machine show to list the ZFS snapshots that are part of zsys. Use with wc to show the number of snapshots before garbage collection and after, hopefully with a reduction:
zsysctl machine show|wc
127 468 7959
zsysctl service gc
zsysctl machine show|wc
105 381 6350
Free space after this has run: ubuntu_ l3g9y7 375M 202M 174M 54% /boot
df -lh /boot
Filesystem Size Used Avail Use% Mounted on
bpool/BOOT/
Monitoring the Avail space for boot while re-running apt upgrade : ubuntu_ l3g9y7 375M 289M 86M 78% /boot ubuntu_ l3g9y7 1.58G 174M 201M /boot
df -h /boot
Filesystem Size Used Avail Use% Mounted on
bpool/BOOT/
before returning to 174M available.
zfs list -r bpool
NAME USED AVAIL REFER MOUNTPOINT
bpool 1.58G 174M 96K /boot
bpool/BOOT 1.58G 174M 96K none
bpool/BOOT/
The used space in this case is in zfs snapshots, hence zsys garbage collection resolved this.
Where zfs and zsys are installed, checking free space and "bloat" required space, with the option/suggestion to run "zsysctl service gc".