I ran into this on Ubuntu 26.04 (resolute) with TUXEDO kernels, and
found a workaround.
Symptoms:
- apt/dpkg upgrade fails, leaving initramfs-tools and
linux-image-7.0.0-113043-tuxedo
in a half-configured state (iF).
- update-initramfs fails with:
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
- No initrd was generated for the new kernel, so the default boot entry
could not start normally (booting via the UEFI boot menu with an older
kernel still worked).
Versions:
- initramfs-tools / -core / -bin: 2:0.142ubuntu26-tux1 (installed)
- dhcpcd-base: 1:10.3.0-7
- Available in the resolute archive: initramfs-tools 0.151ubuntu1
Observation:
The installed hook (/usr/share/initramfs-tools/hooks/dhcpcd) copies
/usr/lib/dhcpcd/dhcpcd-run-hooks and /usr/lib/dhcpcd/dhcpcd-hooks/30-hostname.
In dhcpcd-base 1:10.3.0-7 these files are located in /usr/libexec/ instead
(see `dpkg -L dhcpcd-base`). copy_exec then fails, and because the hook uses
"set -e", the whole initramfs build aborts.
Likely cause (my assumption, not confirmed):
The hook in 0.142ubuntu26-tux1 is older than the dhcpcd-base layout change.
Apt does not offer 0.151ubuntu1 as an upgrade because the installed version
has epoch 2:, which sorts higher than 0.151ubuntu1.
Workaround that fixed it for me:
sudo apt install --allow-downgrades \
initramfs-tools=0.151ubuntu1 \
initramfs-tools-core=0.151ubuntu1 \
initramfs-tools-bin=0.151ubuntu1
sudo dpkg --configure -a
sudo update-initramfs -u -k all
sudo update-grub
After this, dpkg --audit reports nothing, initrd images exist for both
kernels, and lsinitramfs shows dhcpcd in the initramfs, with its files
under usr/libexec/dhcpcd-hooks/.
Note: I am not sure why the system had the 2:0.142ubuntu26-tux1 version.
It was not available from any configured repository, only from the dpkg
status file.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2171568
Title:
Upgrading laptop doesn't succeed due to dhcpcd issue
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dhcpcd/+bug/2171568/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs