[Bug 2039342] Re: package linux-image-6.5.0-1005-raspi 6.5.0-1005.7 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Brian Candler
2039342 at bugs.launchpad.net
Fri May 17 08:51:09 UTC 2024
I am getting the same error with Ubuntu 24.04, but a different file from
dhcpcd-base was missing.
With set -x in /usr/share/initramfs-tools/hooks/dhcpcd:
...
+ grep ^dhcpcd: /etc/passwd
+ ldd /usr/sbin/dhcpcd
+ sed -En s;^.*/lib(/lib[^/]*prof)?/([^/]+)/libc\.so\..*$;\2;p
+ multiarch_dir=x86_64-linux-gnu
+ copy_exec /usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
+ local src target x nonoptlib ret
+ src=/usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
+ target=/usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
+ copy_file binary /usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so /usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
+ local type src target link_target
+ type=binary
+ src=/usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
+ target=/usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
+ [ -f /usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so ]
+ return 2
+ return 1
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.8.0-31-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Checking:
# ls /usr/lib/x86_64-linux-gnu/dhcpcd/dev
# dpkg-query -S /usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
dhcpcd-base: /usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
# dpkg -V dhcpcd-base
missing /usr/lib/x86_64-linux-gnu/dhcpcd/dev/udev.so
#
And as before,
apt install --reinstall dhcpcd-base
fixes the problem. But I don't know why or how this file got deleted in
the first place.
Workaround for a scripted install:
if dpkg -V dhcpcd-base | grep missing; then
apt install --yes --reinstall dhcpcd-base
fi
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/2039342
Title:
package linux-image-6.5.0-1005-raspi 6.5.0-1005.7 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools
exited with return code 1
Status in initramfs-tools package in Ubuntu:
Invalid
Bug description:
This happened during the upgrade.
ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: linux-image-6.5.0-1005-raspi 6.5.0-1005.7
ProcVersionSignature: Ubuntu 6.2.0-1014.16-raspi 6.2.16
Uname: Linux 6.2.0-1014-raspi aarch64
ApportVersion: 2.27.0-0ubuntu5
Architecture: arm64
CasperMD5CheckResult: unknown
CloudArchitecture: aarch64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial:
CloudSubPlatform: config-disk (/dev/sdb1)
Date: Sat Oct 14 09:07:02 2023
ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
ImageMediaBuild: 20210201.1
Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal, 3.11.4-5
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
dpkg 1.22.0ubuntu1
apt 2.7.3
SourcePackage: initramfs-tools
Title: package linux-image-6.5.0-1005-raspi 6.5.0-1005.7 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
UpgradeStatus: Upgraded to mantic on 2023-10-14 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2039342/+subscriptions
More information about the foundations-bugs
mailing list