package initramfs-tools 0.140ubuntu13.5 failed to install/upgrade: installed initramfs-tools package post-installation script subprocess was interrupted
This bug report will be marked for expiration in 52 days if no further activity occurs. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I have problems with the kernals and nvidia drivers
ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: initramfs-tools 0.140ubuntu13.5
ProcVersionSign
Uname: Linux 6.5.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
Date: Wed May 15 15:29:48 2024
Df:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/nvme0n1p2 982862268 51905892 880956044 6% /
ErrorMessage: installed initramfs-tools package post-installation script subprocess was interrupted
InstallationDate: Installed on 2024-02-28 (77 days ago)
InstallationMedia: Ubuntu 22.04.4 LTS "Jammy Jellyfish" - Release amd64 (20240220)
PackageArchitec
Python3Details: /usr/bin/
PythonDetails: N/A
RelatedPackageV
dpkg 1.21.1ubuntu2.3
apt 2.4.12
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.140ubuntu13.5 failed to install/upgrade: installed initramfs-tools package post-installation script subprocess was interrupted
UpgradeStatus: No upgrade log present (probably fresh install)
Thank you for taking the time to report this bug and helping to make Ubuntu better. The dpkg terminal log has some error message:
Error! Bad return status for module build on kernel: 5.15.0-111-generic (x86_64) dkms/nvidia/ 545.29. 06/build/ make.log for more information. img-6.5. 0-35-generic 6.5.0-35- generic 6.5.0-35- generic: No such file or directory mkinitramfs_ FZ3e72/ lib/modules/ 6.5.0-35- generic/ modules. builtin: No such file or directory builtin. modinfo (for locating built-in drivers' firmware, supported in Linux >=5.2) mkinitramfs_ FZ3e72/ lib/modules/ 6.5.0-35- generic: No such file or directory mkinitramfs_ FZ3e72/ lib/modules/ 6.5.0-35- generic: No such file or directory nvidia- kernel- source- 545.0.crash' dkms/nvidia/ 545.29. 06/build/ make.log for more information. img-6.5. 0-35-generic 6.5.0-35- generic 6.5.0-35- generic: No such file or directory mkinitramfs_ Z9KJ91/ lib/modules/ 6.5.0-35- generic/ modules. builtin: No such file or directory builtin. modinfo (for locating built-in drivers' firmware, supported in Linux >=5.2)
Consult /var/lib/
dpkg: error processing package nvidia-dkms-545 (--configure):
installed nvidia-dkms-545 package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.5) ...
update-initramfs: Generating /boot/initrd.
W: missing /lib/modules/
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/
W: Can't find modules.
depmod: WARNING: could not open modules.order at /var/tmp/
depmod: WARNING: could not open modules.builtin at /var/tmp/
[...]
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/
Error! Bad return status for module build on kernel: 5.15.0-111-generic (x86_64)
Consult /var/lib/
dpkg: error processing package nvidia-dkms-545 (--configure):
installed nvidia-dkms-545 package post-installation script subprocess returned error exit status 10
Processing triggers for initramfs-tools (0.140ubuntu13.5) ...
update-initramfs: Generating /boot/initrd.
W: missing /lib/modules/
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/
W: Can't find modules.
The reason is not clear to me. Can you reproduce the failure? What is the output when running "sudo apt-get install -f"?