[Bug 1605941] Re: package initramfs-tools 0.122ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Benjamin Drung
1605941 at bugs.launchpad.net
Fri Dec 15 22:42:28 UTC 2023
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-4.4.0-28-generic
cp: omitting directory '/etc/udev/rules.d/10-network.rules'
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-28-generic with 1.
This failure can be easily reproduced by creating a directory in the
udev rules directory:
```
$ schroot-wrapper -p initramfs-tools,udev,linux-image-generic,zstd -u root -c noble
[...]
$ mkdir /etc/udev/rules.d/10-network.rules
$ update-initramfs -u
cp: -r not specified; omitting directory '/etc/udev/rules.d/10-network.rules'
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.5.0-9-generic with 1.
```
/usr/share/initramfs-tools/hooks/udev is shipped by udev. So re-
assigning to the corresponding source package systemd.
** Package changed: initramfs-tools (Ubuntu) => systemd (Ubuntu)
** Description changed:
- NOT SURE WHAT IT IS SORRY
+ update-initramfs: Generating /boot/initrd.img-4.4.0-28-generic
+ cp: omitting directory '/etc/udev/rules.d/10-network.rules'
+ E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
+ update-initramfs: failed for /boot/initrd.img-4.4.0-28-generic with 1.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: initramfs-tools 0.122ubuntu8.1
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Sat Jul 23 15:50:43 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-06-27 (26 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
RelatedPackageVersions:
- dpkg 1.18.4ubuntu1.1
- apt 1.2.12~ubuntu16.04.1
+ dpkg 1.18.4ubuntu1.1
+ apt 1.2.12~ubuntu16.04.1
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.122ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
** Changed in: systemd (Ubuntu)
Status: Confirmed => Triaged
** Summary changed:
- package initramfs-tools 0.122ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
+ /usr/share/initramfs-tools/hooks/udev fails if /etc/udev/rules.d contains directories
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1605941
Title:
/usr/share/initramfs-tools/hooks/udev fails if /etc/udev/rules.d
contains directories
Status in systemd package in Ubuntu:
Triaged
Bug description:
update-initramfs: Generating /boot/initrd.img-4.4.0-28-generic
cp: omitting directory '/etc/udev/rules.d/10-network.rules'
E: /usr/share/initramfs-tools/hooks/udev failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.4.0-28-generic with 1.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: initramfs-tools 0.122ubuntu8.1
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Sat Jul 23 15:50:43 2016
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2016-06-27 (26 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
RelatedPackageVersions:
dpkg 1.18.4ubuntu1.1
apt 1.2.12~ubuntu16.04.1
SourcePackage: initramfs-tools
Title: package initramfs-tools 0.122ubuntu8.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1605941/+subscriptions
More information about the foundations-bugs
mailing list