package nvidia-kernel-common-525 525.105.17-0ubuntu1 failed to install/upgrade: installed nvidia-kernel-common-525 package post-installation script subprocess returned error exit status 1

Bug #2018171 reported by Matthew Mattox
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Upgrading from 22.10 to 23.04

ProblemType: Package
DistroRelease: Ubuntu 23.04
Package: nvidia-kernel-common-525 525.105.17-0ubuntu1
ProcVersionSignature: Ubuntu 5.19.0-35.36-generic 5.19.17
Uname: Linux 5.19.0-35-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
Date: Sat Apr 29 19:33:35 2023
ErrorMessage: installed nvidia-kernel-common-525 package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2022-11-22 (158 days ago)
InstallationMedia: Ubuntu-Server 20.04.5 LTS "Focal Fossa" - Release amd64 (20220831)
Python3Details: /usr/bin/python3.11, Python 3.11.2, python3-minimal, 3.11.2-1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.21ubuntu1
 apt 2.6.0
SourcePackage: initramfs-tools
Title: package nvidia-kernel-common-525 525.105.17-0ubuntu1 failed to install/upgrade: installed nvidia-kernel-common-525 package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to lunar on 2023-04-30 (0 days ago)

Revision history for this message
Matthew Mattox (supporttools) wrote :
tags: removed: need-duplicate-check
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. The relevant dpkg terminal log says:

update-initramfs: Generating /boot/initrd.img-5.19.0-35-generic
grep: /boot/config-5.19.0-35-generic: No such file or directory
W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip
grep: /boot/config-5.19.0-35-generic: No such file or directory
E: gzip compression (CONFIG_RD_GZIP) not supported by kernel
update-initramfs: failed for /boot/initrd.img-5.19.0-35-generic with 1.

/boot/config-5.19.0-35-generic is not present any more. Probably the kernel version 5.19.0-35-generic is not fully installed any more. I recommend to remove this kernel completely:

sudo apt remove linux-image-5.19.0-35-generic linux-modules-5.19.0-35-generic linux-modules-extra-5.19.0-35-generic

Changed in initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Benjamin Drung (bdrung) wrote :

Commit 035190cc4385c0441dddc1bbaba000cf7f1f179b (released in initramfs-tools 0.141) introduced this kernel compression support check. Let's make mkinitramfs skip the compression support check if the kernel config is missing.

Changed in initramfs-tools (Ubuntu):
importance: Undecided → High
status: Incomplete → In Progress
Benjamin Drung (bdrung)
Changed in initramfs-tools (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.142ubuntu14

---------------
initramfs-tools (0.142ubuntu14) mantic; urgency=medium

  * mkinitramfs: Skip compression support check if /boot/config-${version}
    is missing (LP: #2018171)

 -- Benjamin Drung <email address hidden> Tue, 26 Sep 2023 00:49:57 +0200

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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