initramfs-tools 0.142ubuntu9 fails on upgrade: wrong multiarch libdir

Bug #2031363 reported by madigal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
High
Unassigned

Bug Description

changelog :

initramfs-tools (0.142ubuntu9) mantic; urgency=medium

  * Replace dhclient by dhcpcd (LP: #2024164)
  * Merge consecutive manual_add_modules calls into one

 -- Benjamin Drung <@.com> Mon, 14 Aug 2023 18:09:08 +0200

this ends on error status 1 when upgrading:

```
+ copy_exec /usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so
+ local src target x nonoptlib ret
+ src=/usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so
+ target=/usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so
+ copy_file binary /usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so /usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so
+ local type src target link_target
+ type=binary
+ src=/usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so
+ target=/usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so
+ [ -f /usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so ]
+ return 2
+ return 1
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
```

---
ProblemType: Bug
ApportVersion: 2.27.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: MATE
DistroRelease: Ubuntu 23.10
Package: initramfs-tools 0.142ubuntu9
PackageArchitecture: all
ProcEnviron:
 LANG=fr_FR.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcVersionSignature: Ubuntu 6.3.0-7.7-generic 6.3.5
Tags: mantic package-from-proposed
Uname: Linux 6.3.0-7-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

madigal (osse7)
tags: added: mantic regression-proposed
Revision history for this message
Steve Langasek (vorlon) wrote :

What is the log output prior to this error message? This does not look like a bug in initramfs-tools, but a consistency error in apt itself.

Changed in initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
madigal (osse7) wrote :

Full message :

Dépaquetage de initramfs-tools-core (0.142ubuntu9) sur (0.142ubuntu9) ...
Paramétrage de initramfs-tools-core (0.142ubuntu9) ...
Paramétrage de initramfs-tools (0.142ubuntu9) ...
update-initramfs: deferring update (trigger activated)
Traitement des actions différées (« triggers ») pour man-db (2.11.2-3) ...
Traitement des actions différées (« triggers ») pour initramfs-tools (0.142ubuntu9) ...
update-initramfs: Generating /boot/initrd.img-6.3.0-7-generic
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.3.0-7-generic with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :
 le sous-processus paquet initramfs-tools script post-installation installé a renvoyé un état de sortie d'erreur 1
Des erreurs ont été rencontrées pendant l'exécution :
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Échec de l'installation d'un paquet. Tentative de récupération :
Paramétrage de initramfs-tools (0.142ubuntu9) ...
update-initramfs: deferring update (trigger activated)
Traitement des actions différées (« triggers ») pour initramfs-tools (0.142ubuntu9) ...
update-initramfs: Generating /boot/initrd.img-6.3.0-7-generic
E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.3.0-7-generic with 1.
dpkg: erreur de traitement du paquet initramfs-tools (--configure) :
 le sous-processus paquet initramfs-tools script post-installation installé a renvoyé un état de sortie d'erreur 1
Des erreurs ont été rencontrées pendant l'exécution :
 initramfs-tools

Revision history for this message
madigal (osse7) wrote :

sudo dpkg-reconfigure initramfs-tools
/usr/sbin/dpkg-reconfigure: initramfs-tools est cassé ou partiellement installé

there is no broken package seen with synaptic

Revision history for this message
Benjamin Drung (bdrung) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 2031363

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

The culprit is probably the failing /usr/share/initramfs-tools/hooks/dhcpcd. Can you edit this file and change `set -e` to `set -ex`. Then run `sudo update-initramfs -u`.

Revision history for this message
madigal (osse7) wrote :
Download full text (9.5 KiB)

have made the change to 'set -ex' as proposed; but the update still fails:

 sudo gedit /usr/share/initramfs-tools/dhcpcd
[sudo] Mot de passe de bilal :
bilal@ub64:~$ sudo gedit /usr/share/initramfs-tools/hooks/dhcpcd
bilal@ub64:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.3.0-7-generic
+ PREREQ=
+ prereqs
+ echo
+ exit 0
+ PREREQ=
+ . /usr/share/initramfs-tools/hook-functions
+ [ -x /usr/sbin/dhcpcd ]
+ copy_exec /usr/sbin/dhcpcd
+ local src target x nonoptlib ret
+ src=/usr/sbin/dhcpcd
+ target=/usr/sbin/dhcpcd
+ copy_file binary /usr/sbin/dhcpcd /usr/sbin/dhcpcd
+ local type src target link_target
+ type=binary
+ src=/usr/sbin/dhcpcd
+ target=/usr/sbin/dhcpcd
+ [ -f /usr/sbin/dhcpcd ]
+ [ -d /var/tmp/mkinitramfs_jDe2k2//usr/sbin/dhcpcd ]
+ [ -e /var/tmp/mkinitramfs_jDe2k2//usr/sbin/dhcpcd ]
+ mkdir -p /var/tmp/mkinitramfs_jDe2k2//usr/sbin
+ [ -h /usr/sbin/dhcpcd ]
+ [ n = y ]
+ cp -pP /usr/sbin/dhcpcd /var/tmp/mkinitramfs_jDe2k2//usr/sbin/dhcpcd
+ env --unset=LD_PRELOAD ldd /usr/sbin/dhcpcd
+ sed -e
  /\//!d;
  /linux-gate/d;
  /=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};
  s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/
+ echo /lib/x86_64-linux-gnu/libc.so.6
+ sed -e s#/lib/\([^/]*/\)\?\(tls\|i686\|sse2\|neon\|vfp\).*/\(lib.*\)#/lib/\1\3#
+ nonoptlib=/lib/x86_64-linux-gnu/libc.so.6
+ echo /lib/x86_64-linux-gnu/libc.so.6
+ sed -e s#-linux-gnu/\(tls\|i686\|sse2\|neon\|vfp\).*/\(lib.*\)#-linux-gnu/\2#
+ nonoptlib=/lib/x86_64-linux-gnu/libc.so.6
+ [ -e /lib/x86_64-linux-gnu/libc.so.6 ]
+ x=/lib/x86_64-linux-gnu/libc.so.6
+ copy_file binary /lib/x86_64-linux-gnu/libc.so.6
+ local type src target link_target
+ type=binary
+ src=/lib/x86_64-linux-gnu/libc.so.6
+ target=/lib/x86_64-linux-gnu/libc.so.6
+ [ -f /lib/x86_64-linux-gnu/libc.so.6 ]
+ [ -d /var/tmp/mkinitramfs_jDe2k2//lib/x86_64-linux-gnu/libc.so.6 ]
+ target=/usr/lib/x86_64-linux-gnu/libc.so.6
+ [ -e /var/tmp/mkinitramfs_jDe2k2//usr/lib/x86_64-linux-gnu/libc.so.6 ]
+ return 1
+ ret=1
+ [ 1 = 1 ]
+ echo /lib64/ld-linux-x86-64.so.2
+ sed -e s#/lib/\([^/]*/\)\?\(tls\|i686\|sse2\|neon\|vfp\).*/\(lib.*\)#/lib/\1\3#
+ nonoptlib=/lib64/ld-linux-x86-64.so.2
+ echo /lib64/ld-linux-x86-64.so.2
+ sed -e s#-linux-gnu/\(tls\|i686\|sse2\|neon\|vfp\).*/\(lib.*\)#-linux-gnu/\2#
+ nonoptlib=/lib64/ld-linux-x86-64.so.2
+ [ -e /lib64/ld-linux-x86-64.so.2 ]
+ x=/lib64/ld-linux-x86-64.so.2
+ copy_file binary /lib64/ld-linux-x86-64.so.2
+ local type src target link_target
+ type=binary
+ src=/lib64/ld-linux-x86-64.so.2
+ target=/lib64/ld-linux-x86-64.so.2
+ [ -f /lib64/ld-linux-x86-64.so.2 ]
+ [ -d /var/tmp/mkinitramfs_jDe2k2//lib64/ld-linux-x86-64.so.2 ]
+ target=/usr/lib64/ld-linux-x86-64.so.2
+ [ -e /var/tmp/mkinitramfs_jDe2k2//usr/lib64/ld-linux-x86-64.so.2 ]
+ return 1
+ ret=1
+ [ 1 = 1 ]
+ copy_exec /usr/lib/dhcpcd/dhcpcd-run-hooks
+ local src target x nonoptlib ret
+ src=/usr/lib/dhcpcd/dhcpcd-run-hooks
+ target=/usr/lib/dhcpcd/dhcpcd-run-hooks
+ copy_file binary /usr/lib/dhcpcd/dhcpcd-run-hooks /usr/lib/dhcpcd/dhcpcd-run-hooks
+ local type src target link_target
+ type=binary
+ src=/usr/lib/dhcpcd/dhcpcd-run-hooks
+ target=/usr/lib/dhcpcd/dhcpcd-run-hooks
+ [ -f /usr/l...

Read more...

tags: added: apport-collected package-from-proposed
description: updated
Revision history for this message
madigal (osse7) wrote : Dependencies.txt

apport information

Revision history for this message
madigal (osse7) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
madigal (osse7) wrote : Re: initramfs-tools 0.142ubuntu9 fails on upgrade

have set back 'set -e' to stay with generic install

Revision history for this message
Benjamin Drung (bdrung) wrote :

Thanks. The "set -ex" output shows the issue:

copy_exec /usr//lib/i386-linux-gnu/dhcpcd/dev/udev.so

I'll fix that.

Benjamin Drung (bdrung)
description: updated
summary: - initramfs-tools 0.142ubuntu9 fails on upgrade
+ initramfs-tools 0.142ubuntu9 fails on upgrade: wrong multiarch libdir
Revision history for this message
madigal (osse7) wrote :

Thanks for the quick find

Changed in initramfs-tools (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Benjamin Drung (bdrung) wrote :

initramfs-tools 0.142ubuntu10 is now uploaded with the fix. Thanks for reporting the bug and the help to debug it.

Changed in initramfs-tools (Ubuntu):
importance: Undecided → Critical
importance: Critical → High
status: Confirmed → Fix Committed
Revision history for this message
madigal (osse7) wrote :

Upgraded the new package, and it fully works; thanks

Changed in initramfs-tools (Ubuntu):
status: Fix Committed → Fix Released
description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :

Moving back to Fix Committed. The bug will be closed once the package migrated from mantic-proposed to mantic.

Changed in initramfs-tools (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.142ubuntu10

---------------
initramfs-tools (0.142ubuntu10) mantic; urgency=medium

  * Fix resolving wrong multiarch libdir in dhcpcd hook (LP: #2031363)

initramfs-tools (0.142ubuntu9) mantic; urgency=medium

  * Replace dhclient by dhcpcd (LP: #2024164)
  * Merge consecutive manual_add_modules calls into one

 -- Benjamin Drung <email address hidden> Tue, 15 Aug 2023 20:41:22 +0200

Changed in initramfs-tools (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.