package initramfs-tools 0.136ubuntu6.6 failed to install/upgrade: installed initramfs-tools package post-installation script subprocess returned error exit status 1

Bug #1956957 reported by J R
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

3 weeks after installing 20.04.3

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: initramfs-tools 0.136ubuntu6.6
ProcVersionSignature: Ubuntu 5.11.0-44.48~20.04.2-generic 5.11.22
Uname: Linux 5.11.0-44-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Jan 10 13:03:11 2022
ErrorMessage: installed initramfs-tools package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-12-22 (19 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
PackageArchitecture: all
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.6
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.136ubuntu6.6 failed to install/upgrade: installed initramfs-tools package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
J R (thealpman) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

I noticed that your boot partition is full. Could you provide the output of "ls -l /boot"? Additionally, how did you install Ubuntu?

Changed in initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
J R (thealpman) wrote :

Hello,
Thank you for your answer. Here is the output :

jr@jrUbuntu:~$ ls -l /boot
total 339272
-rw-r--r-- 1 root root 254083 déc. 14 11:29 config-5.11.0-44-generic
-rw-r--r-- 1 root root 254083 janv. 7 00:13 config-5.11.0-46-generic
-rw-r--r-- 1 root root 237940 janv. 6 22:56 config-5.4.0-94-generic
drwx------ 3 root root 4096 janv. 1 1970 efi
drwxr-xr-x 4 root root 4096 janv. 12 08:25 grub
lrwxrwxrwx 1 root root 27 janv. 12 08:24 initrd.img -> initrd.img-5.4.0-94-generic
-rw-r--r-- 1 root root 102091693 janv. 10 13:07 initrd.img-5.11.0-44-generic
-rw-r--r-- 1 root root 102091767 janv. 14 09:38 initrd.img-5.11.0-46-generic
-rw-r--r-- 1 root root 88223747 janv. 12 08:25 initrd.img-5.4.0-94-generic
lrwxrwxrwx 1 root root 28 janv. 12 08:24 initrd.img.old -> initrd.img-5.11.0-46-generic
drwx------ 2 root root 16384 déc. 22 11:00 lost+found
-rw-r--r-- 1 root root 182704 août 18 2020 memtest86+.bin
-rw-r--r-- 1 root root 184380 août 18 2020 memtest86+.elf
-rw-r--r-- 1 root root 184884 août 18 2020 memtest86+_multiboot.bin
-rw------- 1 root root 5864386 déc. 14 11:29 System.map-5.11.0-44-generic
-rw------- 1 root root 5864386 janv. 7 00:13 System.map-5.11.0-46-generic
-rw------- 1 root root 4756293 janv. 6 22:56 System.map-5.4.0-94-generic
lrwxrwxrwx 1 root root 24 janv. 12 08:24 vmlinuz -> vmlinuz-5.4.0-94-generic
-rw------- 1 root root 11746656 déc. 14 16:23 vmlinuz-5.11.0-44-generic
-rw------- 1 root root 11746784 janv. 7 00:27 vmlinuz-5.11.0-46-generic
-rw------- 1 root root 13656320 janv. 7 00:07 vmlinuz-5.4.0-94-generic
lrwxrwxrwx 1 root root 25 janv. 12 08:24 vmlinuz.old -> vmlinuz-5.11.0-46-generic
jr@jrUbuntu:~$

There were more files and I ran
sudo apt-get autoremove --purge
Then
apt-mark showmanual | grep -E "linux-.*[0-9]" | grep -v "hwe" | xargs -r sudo apt-mark auto

And again
sudo apt autoremove --purge -y

Seems to have deleted a couple files.

Well I installed it in the common way I'd say : USB drive, erase all disk and install encrypted version with LUKS. I connected to a wifi network during the installation.

Then I ran the following commands to reinstall the packages I had on my previous computer (attached file) :
sudo apt-get update
sudo apt-get install dselect
sudo dselect update
sudo dpkg --set-selections < liste-des-paquets
sudo apt-get -u dselect-upgrade
(I've been doing this a couple times from previous systems, starting in 20.04, now I'm in 20.04.3).

Do you see what happened ?
Thanks

Revision history for this message
J R (thealpman) wrote :

I see these in my package files, maybe I should delete a couple lines ?
linux-generic-hwe-20.04 install
linux-headers-5.11.0-27-generic install
linux-headers-5.11.0-43-generic install
linux-headers-5.4.0-88 install
linux-headers-5.4.0-88-generic install
linux-headers-5.4.0-89 install
linux-headers-5.4.0-89-generic install
linux-headers-5.4.0-91 install
linux-headers-5.4.0-91-generic install
linux-headers-generic install
linux-headers-generic-hwe-20.04 install
linux-hwe-5.11-headers-5.11.0-27 install
linux-hwe-5.11-headers-5.11.0-43 install
linux-image-5.11.0-27-generic install
linux-image-5.11.0-43-generic install
linux-image-5.4.0-88-generic install
linux-image-5.4.0-89-generic install
linux-image-5.4.0-91-generic install
linux-image-generic install
linux-image-generic-hwe-20.04 install
linux-libc-dev:amd64 install
linux-modules-5.11.0-27-generic install
linux-modules-5.11.0-43-generic install
linux-modules-5.4.0-88-generic install
linux-modules-5.4.0-89-generic install
linux-modules-5.4.0-91-generic install
linux-modules-extra-5.11.0-27-generic install
linux-modules-extra-5.11.0-43-generic install
linux-modules-extra-5.4.0-88-generic install
linux-modules-extra-5.4.0-89-generic install
linux-modules-extra-5.4.0-91-generic install

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for initramfs-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.