Public bug reported:
Affected package
Source: libgphoto2
Package: libgphoto2-6t64 (amd64 and i386)
Version: 2.5.33-1ubuntu2.1 (also present in 2.5.33-1ubuntu2)
Release: Ubuntu 26.10 (codename: stonking)
Architecture: affects amd64 systems with the i386 variant installed (multi-arch
same)
Summary
The file /usr/lib/udev/rules.d/60-libgphoto2-6t64.rules is shipped by
libgphoto2-6t64 on both amd64 and i386 (Multi-Arch: same), so dpkg requires the
file to be byte-identical across architectures for a given version. However,
the generated header inside the file embeds the build compiler triplet
(x86_64-linux-gnu-gcc vs i686-linux-gnu-gcc), so the amd64 and i386 builds of
the same upstream version produce different file contents. On a system with
both instances installed, upgrading from 2.5.33-1ubuntu2 to 2.5.33-1ubuntu2.1
fails with an unrecoverable dpkg shared-file conflict:
apt full-upgrade fails on the amd64 unpack ("trying to overwrite shared ...
which is different from other instances").
apt --fix-broken install, aptitude full-upgrade, and dpkg --configure -a cannot
resolve the resulting deadlock, because neither instance can be unpacked or
configured while the other is at a different version.
Workaround that succeeded: remove libgphoto2-6t64:i386 with dpkg --remove
--force-depends, upgrade the amd64 instance, then reinstall the i386 .deb with
dpkg -i --force-overwrite, followed by apt --fix-broken install and dpkg
--configure -a.
Any user with i386 libgphoto2 installed — most commonly via Wine/i386
dependencies — will hit this and standard tooling cannot escape it, so I
believe this warrants a coordinated rebuild fixing the generated header
(ideally making the arch-independent udev rules file byte-identical across arch
builds).
Environment
OS: Ubuntu 26.10 "stonking"
Distributor ID: Ubuntu
Description: Ubuntu 26.10
Release: 26.10
Codename: stonking
Kernel: 7.3.0-10-generic
dpkg version: 1.23.7 (amd64)
Debian 'dpkg' package management program version 1.23.7 (amd64).
Packages after recovery (all at 2.5.33-1ubuntu2.1):
ii libgphoto2-6t64:amd64 2.5.33-1ubuntu2.1 amd64 gphoto2 digital
camera library
ii libgphoto2-6t64:i386 2.5.33-1ubuntu2.1 i386 gphoto2 digital
camera library
ii libgphoto2-l10n 2.5.33-1ubuntu2.1 all gphoto2 digital
camera library - localized messages
ii libgphoto2-port12t64:amd64 2.5.33-1ubuntu2.1 amd64 gphoto2 digital
camera port library
ii libgphoto2-port12t64:i386 2.5.33-1ubuntu2.1 i386 gphoto2 digital
camera port library
Evidence that the file differs between architectures
Extracting the rules file from the cached i386 .deb and diffing against the
installed (amd64-provided) file:
$ mkdir -p /tmp/gp386 && dpkg-deb -x
/var/cache/apt/archives/libgphoto2-6t64_2.5.33-1ubuntu2.1_i386.deb /tmp/gp386
$ diff /tmp/gp386/usr/lib/udev/rules.d/60-libgphoto2-6t64.rules
/usr/lib/udev/rules.d/60-libgphoto2-6t64.rules
3,4c3,4
< # libgphoto2 2.5.33 standard camlibs, i686-linux-gnu-gcc, no
ltdl, EXIF
< # libgphoto2_port 0.12.2 iolibs: disk ptpip serial usb1
usbdiskdirect usbscsi, i686-linux-gnu-gcc, no ltdl, EXIF, USB, serial without
locking
---
> # libgphoto2 2.5.33 standard camlibs, x86_64-linux-gnu-gcc, no
> ltdl, EXIF
> # libgphoto2_port 0.12.2 iolibs: disk ptpip serial usb1
> usbdiskdirect usbscsi, x86_64-linux-gnu-gcc, no ltdl, EXIF, USB, serial
> without locking
The only differences are the compiler triplets in the generated-file header
comments; the actual udev rule lines are identical. Nonetheless, dpkg's
multi-arch shared-file consistency check operates on file content, so this
blocks upgrades.
Failure 1: apt full-upgrade fails on amd64 unpack
Preparing to unpack …/libgphoto2-6t64_2.5.33-1ubuntu2.1_amd64.deb…
Unpacking libgphoto2-6t64:amd64 (2.5.33-1ubuntu2.1) over (2.5.33-1ubuntu2)…
dpkg: error processing archive
/var/cache/apt/archives/libgphoto2-6t64_2.5.33-1ubuntu2.1_amd64.deb (--unpack):
trying to overwrite shared '/usr/lib/udev/rules.d/60-libgphoto2-6t64.rules',
which is different from other instances of package libgphoto2-6t64:amd64
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
State after this failure — mutual version-dependent Breaks prevent
configuration:
dpkg: error processing package libgphoto2-6t64:amd64 (--configure):
package libgphoto2-6t64:amd64 (2.5.33-1ubuntu2) cannot be configured because
libgphoto2-6t64:i386 is at a different version (2.5.33-1ubuntu2.1)
dpkg: error processing package libgphoto2-6t64:i386 (--configure):
package libgphoto2-6t64:i386 (2.5.33-1ubuntu2.1) cannot be configured because
libgphoto2-6t64:amd64 is at a different version (2.5.33-1ubuntu2)
apt's reported dependency state at this point:
Unsatisfied dependencies:
libgphoto2-6t64 : Recommends: libgphoto2-l10n (= 2.5.33-1ubuntu2) but
2.5.33-1ubuntu2.1 is installed
Breaks: libgphoto2-6t64:i386 (!= 2.5.33-1ubuntu2) but
2.5.33-1ubuntu2.1 is installed
libgphoto2-6t64:i386 : Breaks: libgphoto2-6t64 (!= 2.5.33-1ubuntu2.1) but
2.5.33-1ubuntu2 is installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or
specify a solution).
Failure 2: apt --fix-broken install hits the identical conflict
After upgrading amd64 to .1 succeeded in a later transaction, reinstalling the
i386 instance (needed by libwine:i386) still fails with the same shared-file
check, now triggered by the i386 unpack:
Preparing to unpack …/libgphoto2-6t64_2.5.33-1ubuntu2.1_i386.deb…
Unpacking libgphoto2-6t64:i386 (2.5.33-1ubuntu2.1)…
dpkg: error processing archive
/var/cache/apt/archives/libgphoto2-6t64_2.5.33-1ubuntu2.1_i386.deb (--unpack):
trying to overwrite shared '/usr/lib/udev/rules.d/60-libgphoto2-6t64.rules',
which is different from other instances of package libgphoto2-6t64:i386
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Note: attempting sudo apt remove libgphoto2-6t64:i386 via apt alone also fails,
because libwine:i386 Depends on it and apt refuses to break the dependency —
leaving the user stuck without direct dpkg intervention.
Failed recovery attempts (for completeness)
apt --fix-broken install — same shared-file conflict
apt full-upgrade (twice, including after fresh apt update) — same
aptitude full-upgrade — aptitude's resolver selects the same solution and the
same dpkg error occurs; it cannot reconcile a content-level multi-arch conflict
dpkg --configure -a — deadlocks on the mutual version-mismatch configuration
error above
Successful workaround
sudo dpkg --remove --force-depends libgphoto2-6t64:i386
sudo apt --fix-broken install # upgrades libgphoto2-6t64:amd64 to
2.5.33-1ubuntu2.1 cleanly
sudo dpkg -i --force-overwrite
/var/cache/apt/archives/libgphoto2-6t64_2.5.33-1ubuntu2.1_i386.deb
sudo apt --fix-broken install
sudo dpkg --configure -a
sudo apt full-upgrade
Verified safe here because the content divergence is comment-only (compiler
triplet in the generated header), but in general forcing an overwrite of an
arch-divergent shared file is not something a user should have to reason about.
Suggested fix
Make the generated /usr/lib/udev/rules.d/60-libgphoto2-6t64.rules
byte-identical across arch builds of libgphoto2-6t64 — e.g. strip or normalize
the build-host/compiler triplet comment when installing the rules file in
debian/rules (or ship it via a Multi-Arch: same-safe mechanism). Then
coordinate a rebuild/upload of both architectures with matching content so
affected systems can upgrade normally.
Impact
Affects any Ubuntu system with libgphoto2-6t64:i386 installed — primarily Wine
setups, where libwine:i386 hard-depends on libgphoto2-6t64:i386. Upgrades fail
permanently with unmet-dependency errors, and neither apt nor aptitude can
recover; users are forced into --force-remove/--force-overwrite steps that risk
system damage if done without understanding the file involved.
** Affects: libgphoto2 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173989
Title:
libgphoto2-6t64: multi-arch conflict on
/usr/lib/udev/rules.d/60-libgphoto2-6t64.rules breaks upgrades on
systems with :i386 installed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libgphoto2/+bug/2173989/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs