[Initramfs] E: /usr/share/initramfs-tools/hooks/kmod failed with return 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This happen after trusty migration to utopic and purging an old installed kernel.
Then initramfs fail to configure the kernel(s)
oem@dev32:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.
cp: cannot stat ‘/lib/modprobe.
E: /usr/share/
update-initramfs: failed for /boot/initrd.
Trying to reinstall it, i get:
E: Internal Error, No file name for initramfs-
So it seems that the latest kmod (16.2ubuntu1) upgrade into utopic have broken the not yet upgraded initramfs-tools package.
The problem also exist with a newer kernel:
run-parts: executing /etc/kernel/
dpkg: dependency problems prevent configuration of linux-image-
linux-
Package initramfs-tools is not configured yet.
dpkg: error processing package linux-image-
dependency problems - leaving unconfigured
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: initramfs-tools 0.103ubuntu4
ProcVersionSign
Uname: Linux 3.13.0-24-generic i686
NonfreeKernelMo
ApportVersion: 2.14.1-0ubuntu3
Architecture: i386
CurrentDesktop: GNOME
Date: Sat Apr 26 14:34:47 2014
InstallationDate: Installed on 2013-10-25 (182 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20131021.1)
PackageArchitec
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
summary: |
- E: /usr/share/initramfs-tools/hooks/kmod failed with return 1 + [Initramfs] E: /usr/share/initramfs-tools/hooks/kmod failed with return + 1 |
tags: | added: build init initramfs kernel |
tags: |
added: kmod removed: init |
Purged the kernels installation, then reinstall one, but still fails:
Examining /etc/kernel/ postinst. d. postinst. d/apt-auto- removal 3.14.1- 031401- generic /boot/vmlinuz- 3.14.1- 031401- generic postinst. d/dkms 3.14.1- 031401- generic /boot/vmlinuz- 3.14.1- 031401- generic postinst. d/initramfs- tools 3.14.1- 031401- generic /boot/vmlinuz- 3.14.1- 031401- generic img-3.14. 1-031401- generic d/*’: No such file or directory initramfs- tools/hooks/ kmod failed with return 1. img-3.14. 1-031401- generic with 1. postinst. d/initramfs- tools exited with return code 1 postinst. d at /var/lib/ dpkg/info/ linux-image- 3.14.1- 031401- generic. postinst line 1025. 3.14.1- 031401- generic (--install):
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
cp: cannot stat ‘/lib/modprobe.
E: /usr/share/
update-initramfs: failed for /boot/initrd.
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-installation script returned error exit status 2