package linux-image-5.13.0-52-generic 5.13.0-52.59~20.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1

Bug #1980690 reported by IH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  linux-headers-5.13.0-51-generic linux-hwe-5.13-headers-5.13.0-51 linux-image-5.13.0-51-generic linux-modules-5.13.0-51-generic
  linux-modules-extra-5.13.0-51-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  linux-headers-5.13.0-52-generic linux-hwe-5.13-headers-5.13.0-52 linux-image-5.13.0-52-generic linux-modules-5.13.0-52-generic
  linux-modules-extra-5.13.0-52-generic
The following packages will be upgraded:
  isc-dhcp-client isc-dhcp-common linux-generic-hwe-20.04 linux-headers-generic-hwe-20.04 linux-image-generic-hwe-20.04 system76-driver
  system76-driver-nvidia system76-firmware-daemon unattended-upgrades update-notifier update-notifier-common
11 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
3 standard security updates
Need to get 95.3 MB of archives.
After this operation, 508 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 update-notifier amd64 3.192.30.11 [56.6 kB]
Get:2 http://ppa.launchpad.net/system76-dev/stable/ubuntu focal/main amd64 system76-firmware-daemon amd64 1.0.41~1655913916~20.04~12dc13d~dev [1,051 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 update-notifier-common all 3.192.30.11 [133 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 isc-dhcp-client amd64 4.4.1-2.1ubuntu5.20.04.3 [246 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 isc-dhcp-common amd64 4.4.1-2.1ubuntu5.20.04.3 [44.9 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-5.13.0-52-generic amd64 5.13.0-52.59~20.04.1 [18.4 MB]
Get:7 http://ppa.launchpad.net/system76-dev/stable/ubuntu focal/main amd64 system76-driver all 20.04.59~1655915768~20.04~ee954c3~dev [68.6 kB]
Get:8 http://ppa.launchpad.net/system76-dev/stable/ubuntu focal/main amd64 system76-driver-nvidia all 20.04.59~1655915768~20.04~ee954c3~dev [15.2 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-5.13.0-52-generic amd64 5.13.0-52.59~20.04.1 [10.0 MB]
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-modules-extra-5.13.0-52-generic amd64 5.13.0-52.59~20.04.1 [50.8 MB]
Get:11 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-generic-hwe-20.04 amd64 5.13.0.52.59~20.04.31 [1,932 B]
Get:12 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-generic-hwe-20.04 amd64 5.13.0.52.59~20.04.31 [2,612 B]
Get:13 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-hwe-5.13-headers-5.13.0-52 all 5.13.0-52.59~20.04.1 [11.8 MB]
Get:14 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-5.13.0-52-generic amd64 5.13.0-52.59~20.04.1 [2,554 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-headers-generic-hwe-20.04 amd64 5.13.0.52.59~20.04.31 [2,496 B]
Get:16 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 unattended-upgrades all 2.3ubuntu0.3 [48.5 kB]
Fetched 95.3 MB in 10s (9,453 kB/s)
Preconfiguring packages ...
(Reading database ... 227776 files and directories currently installed.)
Preparing to unpack .../00-update-notifier_3.192.30.11_amd64.deb ...
Unpacking update-notifier (3.192.30.11) over (3.192.30.10) ...
Preparing to unpack .../01-update-notifier-common_3.192.30.11_all.deb ...
Unpacking update-notifier-common (3.192.30.11) over (3.192.30.10) ...
Preparing to unpack .../02-isc-dhcp-client_4.4.1-2.1ubuntu5.20.04.3_amd64.deb ...
Unpacking isc-dhcp-client (4.4.1-2.1ubuntu5.20.04.3) over (4.4.1-2.1ubuntu5.20.04.2) ...
Preparing to unpack .../03-isc-dhcp-common_4.4.1-2.1ubuntu5.20.04.3_amd64.deb ...
Unpacking isc-dhcp-common (4.4.1-2.1ubuntu5.20.04.3) over (4.4.1-2.1ubuntu5.20.04.2) ...
Selecting previously unselected package linux-modules-5.13.0-52-generic.
Preparing to unpack .../04-linux-modules-5.13.0-52-generic_5.13.0-52.59~20.04.1_amd64.deb ...
Unpacking linux-modules-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
Selecting previously unselected package linux-image-5.13.0-52-generic.
Preparing to unpack .../05-linux-image-5.13.0-52-generic_5.13.0-52.59~20.04.1_amd64.deb ...
Unpacking linux-image-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
Selecting previously unselected package linux-modules-extra-5.13.0-52-generic.
Preparing to unpack .../06-linux-modules-extra-5.13.0-52-generic_5.13.0-52.59~20.04.1_amd64.deb ...
Unpacking linux-modules-extra-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
Preparing to unpack .../07-linux-generic-hwe-20.04_5.13.0.52.59~20.04.31_amd64.deb ...
Unpacking linux-generic-hwe-20.04 (5.13.0.52.59~20.04.31) over (5.13.0.51.58~20.04.31) ...
Preparing to unpack .../08-linux-image-generic-hwe-20.04_5.13.0.52.59~20.04.31_amd64.deb ...
Unpacking linux-image-generic-hwe-20.04 (5.13.0.52.59~20.04.31) over (5.13.0.51.58~20.04.31) ...
Selecting previously unselected package linux-hwe-5.13-headers-5.13.0-52.
Preparing to unpack .../09-linux-hwe-5.13-headers-5.13.0-52_5.13.0-52.59~20.04.1_all.deb ...
Unpacking linux-hwe-5.13-headers-5.13.0-52 (5.13.0-52.59~20.04.1) ...
Selecting previously unselected package linux-headers-5.13.0-52-generic.
Preparing to unpack .../10-linux-headers-5.13.0-52-generic_5.13.0-52.59~20.04.1_amd64.deb ...
Unpacking linux-headers-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
Preparing to unpack .../11-linux-headers-generic-hwe-20.04_5.13.0.52.59~20.04.31_amd64.deb ...
Unpacking linux-headers-generic-hwe-20.04 (5.13.0.52.59~20.04.31) over (5.13.0.51.58~20.04.31) ...
Preparing to unpack .../12-system76-firmware-daemon_1.0.41~1655913916~20.04~12dc13d~dev_amd64.deb ...
Unpacking system76-firmware-daemon (1.0.41~1655913916~20.04~12dc13d~dev) over (1.0.39~1654116394~20.04~f71ce23~dev) ...
Preparing to unpack .../13-unattended-upgrades_2.3ubuntu0.3_all.deb ...
Unpacking unattended-upgrades (2.3ubuntu0.3) over (2.3ubuntu0.1) ...
Preparing to unpack .../14-system76-driver_20.04.59~1655915768~20.04~ee954c3~dev_all.deb ...
Unpacking system76-driver (20.04.59~1655915768~20.04~ee954c3~dev) over (20.04.55~1653321476~20.04~09ff50e~dev) ...
Preparing to unpack .../15-system76-driver-nvidia_20.04.59~1655915768~20.04~ee954c3~dev_all.deb ...
Unpacking system76-driver-nvidia (20.04.59~1655915768~20.04~ee954c3~dev) over (20.04.55~1653321476~20.04~09ff50e~dev) ...
Setting up update-notifier-common (3.192.30.11) ...
Setting up system76-firmware-daemon (1.0.41~1655913916~20.04~12dc13d~dev) ...
Setting up isc-dhcp-client (4.4.1-2.1ubuntu5.20.04.3) ...
Installing new version of config file /etc/apparmor.d/sbin.dhclient ...
Setting up linux-hwe-5.13-headers-5.13.0-52 (5.13.0-52.59~20.04.1) ...
Setting up unattended-upgrades (2.3ubuntu0.3) ...
Installing new version of config file /etc/kernel/postinst.d/unattended-upgrades ...
Setting up system76-driver (20.04.59~1655915768~20.04~ee954c3~dev) ...
INFO product_version: 'gaze15'
INFO blacklist_nvidia_i2c: Workaround for delay when loading NVIDIA i2c kernel module
INFO Skipping 'blacklist_nvidia_i2c' as it was already applied
INFO i8042_nomux: Fix keyboard after suspend/resume
INFO Skipping 'i8042_nomux' as it was already applied
Setting up isc-dhcp-common (4.4.1-2.1ubuntu5.20.04.3) ...
Setting up update-notifier (3.192.30.11) ...
Setting up linux-headers-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.13.0-52-generic

Kernel preparation unnecessary for this kernel. Skipping...
applying patch disable_fstack-clash-protection_fcf-protection.patch...patching file Kbuild
Hunk #1 succeeded at 82 (offset 11 lines).

Building module:
cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j12 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.13.0-52-
generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.13.0-52-generic/build LD=/usr/bin/ld.bfd modules.........
Signing module:
 - /var/lib/dkms/nvidia/470.103.01/5.13.0-52-generic/x86_64/module/nvidia.ko
 - /var/lib/dkms/nvidia/470.103.01/5.13.0-52-generic/x86_64/module/nvidia-drm.ko
 - /var/lib/dkms/nvidia/470.103.01/5.13.0-52-generic/x86_64/module/nvidia-modeset.ko
 - /var/lib/dkms/nvidia/470.103.01/5.13.0-52-generic/x86_64/module/nvidia-uvm.ko
 - /var/lib/dkms/nvidia/470.103.01/5.13.0-52-generic/x86_64/module/nvidia-peermem.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

nvidia.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

nvidia-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

depmod...

DKMS: install completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.13.0-52-generic -C /lib/modules/5.13.0-52-generic/build M=/var/lib/dkms/system76/1.0.14~1643391291~20.04~78ede46~d
ev/build...
Signing module:
 - /var/lib/dkms/system76/1.0.14~1643391291~20.04~78ede46~dev/5.13.0-52-generic/x86_64/module/system76.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

system76.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

depmod...

DKMS: install completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.13.0-52-generic -C /lib/modules/5.13.0-52-generic/build M=/var/lib/dkms/system76_acpi/1.0.2~1640122755~20.04~04145
b8~dev/build...
Signing module:
 - /var/lib/dkms/system76_acpi/1.0.2~1640122755~20.04~04145b8~dev/5.13.0-52-generic/x86_64/module/system76_acpi.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

system76_acpi.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

depmod...

DKMS: install completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.13.0-52-generic -C /lib/modules/5.13.0-52-generic/build M=/var/lib/dkms/system76-io/1.0.1~1616424744~20.04~57c15ff
~dev/build...
Signing module:
 - /var/lib/dkms/system76-io/1.0.1~1616424744~20.04~57c15ff~dev/5.13.0-52-generic/x86_64/module/system76-io.ko
Secure Boot not enabled on this system.
cleaning build area...

DKMS: build completed.

system76-io.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-52-generic/updates/dkms/

depmod...

DKMS: install completed.
   ...done.
Setting up linux-headers-generic-hwe-20.04 (5.13.0.52.59~20.04.31) ...
Setting up linux-image-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.13.0-51-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.13.0-51-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.13.0-52-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.13.0-52-generic
Setting up linux-modules-extra-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
Setting up linux-image-generic-hwe-20.04 (5.13.0.52.59~20.04.31) ...
Setting up linux-modules-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
Setting up linux-generic-hwe-20.04 (5.13.0.52.59~20.04.31) ...
Processing triggers for dbus (1.12.16-2ubuntu2.2) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.4) ...
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Processing triggers for man-db (2.9.1-1) ...
Setting up system76-driver-nvidia (20.04.59~1655915768~20.04~ee954c3~dev) ...
INFO:Enable system76-driver-nvidia
Processing triggers for linux-image-5.13.0-52-generic (5.13.0-52.59~20.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.13.0-52-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.13.0-52-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
Error 24 : Write error : cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -l 24
update-initramfs: failed for /boot/initrd.img-5.13.0-52-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.13.0-52-generic (--configure):
 installed linux-image-5.13.0-52-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-5.13.0-52-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: linux-image-5.13.0-52-generic 5.13.0-52.59~20.04.1
Uname: Linux 5.17.5-76051705-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Jul 4 12:43:49 2022
ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
InstallationDate: Installed on 2022-02-26 (128 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: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3.2
 apt 2.0.9
SourcePackage: initramfs-tools
Title: package linux-image-5.13.0-52-generic 5.13.0-52.59~20.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
IH (yettacaletta) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 798414, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

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.