package libwind0-heimdal 7.7.0+dfsg-2build1 failed to install/upgrade: trying to overwrite shared '/usr/share/doc/libwind0-heimdal/changelog.Debian.gz', which is different from other instances of package libwind0-heimdal:i386

Bug #1934936 reported by surajvinay
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
heimdal (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

fresh 21.10 install and 1 reboot later it said there was additional updates and while doing so the error popped up

ProblemType: Package
DistroRelease: Ubuntu 21.10
Package: libwind0-heimdal 7.7.0+dfsg-2build1
ProcVersionSignature: Ubuntu 5.11.0-22.23-generic 5.11.21
Uname: Linux 5.11.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu67
Architecture: amd64
CasperMD5CheckResult: pass
Date: Thu Jul 8 01:45:16 2021
DuplicateSignature:
 package:libwind0-heimdal:7.7.0+dfsg-2build1
 Unpacking libwind0-heimdal:i386 (7.7.0+dfsg-2build1) over (7.7.0+dfsg-2) ...
 dpkg: error processing archive /tmp/apt-dpkg-install-8FDC3J/53-libwind0-heimdal_7.7.0+dfsg-2build1_i386.deb (--unpack):
  trying to overwrite shared '/usr/share/doc/libwind0-heimdal/changelog.Debian.gz', which is different from other instances of package libwind0-heimdal:i386
ErrorMessage: trying to overwrite shared '/usr/share/doc/libwind0-heimdal/changelog.Debian.gz', which is different from other instances of package libwind0-heimdal:i386
InstallationDate: Installed on 2021-06-05 (32 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
Python3Details: /usr/bin/python3.9, Python 3.9.6, python3-minimal, 3.9.4-1
PythonDetails: N/A
RebootRequiredPkgs:
 libc6
 libc6
RelatedPackageVersions:
 dpkg 1.20.9ubuntu2
 apt 2.3.6
SourcePackage: heimdal
Title: package libwind0-heimdal 7.7.0+dfsg-2build1 failed to install/upgrade: trying to overwrite shared '/usr/share/doc/libwind0-heimdal/changelog.Debian.gz', which is different from other instances of package libwind0-heimdal:i386
UpgradeStatus: Upgraded to impish on 2021-07-07 (0 days ago)

Related branches

Revision history for this message
surajvinay (surajvinay) wrote :
tags: removed: need-duplicate-check
Revision history for this message
surajvinay (surajvinay) wrote :

Rebooted and tried updating again. Did not work.
Chose partial update this time and everything downloaded once more with 5.13.0.11 kernel and all processes completed. Rebooted and got the new look with dual desktops showing up.

Revision history for this message
Paride Legovini (paride) wrote :

Hello and thanks for this bug report. You mentioned you hit this problem from a fresh 21.10 install, however two things that caught my attention:

 - The package you are trying to install is for i386, for which there is no installation media for Impish. I guess you added i386 as a foreign architecture, but then your system doesn't count as a "fresh install" anymore :-)
 - libwind0-heimdal 7.7.0+dfsg-2build1 is currently in impish-proposed, so I guess you manually enabled -proposed. This is fine (thanks for testing!), but again your system doesn't really qualify as a "fresh install" in this case.

Could you please provide steps reproduce the problem from an actual fresh install? If this requires adding i386 and -proposed that's fine, however in order to verify this is actually a bug in Ubuntu and start working on it we need a more complete reproducer.

I'm marking this report as Incomplete for now; please change it back to New after commenting back and we'll look at it again. Thanks!

Changed in heimdal (Ubuntu):
status: New → Incomplete
Revision history for this message
Fred (eldmannen+launchpad) wrote :

I had this issue too, it got solved by rebooting and running Software Update (update-manager).

Revision history for this message
Iain Lane (laney) wrote :

Yeah I'm getting this too on dist-upgrade, now that heimdal migrated to impish.

laney@raleigh> diff -u <(xxd changelog.Debian.gz-amd64) <(xxd changelog.Debian.gz-i386)
--- /proc/self/fd/11 2021-07-16 11:20:29.165989264 +0100
+++ /proc/self/fd/20 2021-07-16 11:20:29.169989204 +0100
@@ -97,5 +97,5 @@
 00000600: 8a9e 51d4 4f3c 479b 631a d7fa aea8 3049 ..Q.O<G.c.....0I
 00000610: 71ef de14 f592 de63 deaa 12b4 be77 21c2 q......c.....w!.
 00000620: 80d2 829b 03d2 18a0 af58 dd38 d6da efd7 .........X.8....
-00000630: 91d2 4ac8 dc73 3698 bcda fb0b b716 d885 ..J..s6.........
-00000640: 210d 0000 !...
+00000630: 9192 45c3 66ed 3b1b 5c5e edfd 05ef 322e ..E.f.;.\^....2.
+00000640: de25 0d00 00 .%...

Revision history for this message
Iain Lane (laney) wrote :

welp, this is more sensible as a thing to look at:

laney@raleigh> diff -u <(zcat changelog.Debian.gz-amd64) <(zcat changelog.Debian.gz-i386)
--- /proc/self/fd/11 2021-07-16 11:22:45.935902600 +0100
+++ /proc/self/fd/20 2021-07-16 11:22:45.939902539 +0100
@@ -95,4 +95,4 @@

  -- Brian May <email address hidden> Wed, 26 Apr 2017 19:38:20 +1000

-# For older changelog entries, run 'apt-get changelog libwind0-heimdal'
+# For older changelog entries, run 'apt-get changelog libheimbase1-heimdal'

Iain Lane (laney)
Changed in heimdal (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Is this debhelper or binary-package-mangler bug then?

Revision history for this message
Iain Lane (laney) wrote :

It's probably a bug in pkgstripfiles, will confirm

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

In i386 build log I see

Searching for duplicated docs in dependency libroken18-heimdal...
  symlinking changelog.Debian.gz in libwind0-heimdal to file in libroken18-heimdal

I don't see something similar in adm64.

As if the trimming of the changelog entries got done before doing symlinks, instead of after.

I would have hoped that all packages are processed and things got symlinked first, then trimmed, in the same way on every arch.

Lots of sadness.

Revision history for this message
Alailson Barbosa Ribeiro (alailsonribeiro) wrote :

Working on the problem, I got the idea to move the symlink to another name and so I tried "apt -f install" and the con worked. I perform these steps:

$ cd /usr/share/doc/libwind0-heimdal/
$ mv changelog.Debian.gz changelog.Debian.gz.old
$ apt -f install

RESULT:

Reading package lists... Done
Building dependency tree... Done
Reading status information... Done
Fixing dependencies... Done
The following packages were installed automatically and are no longer needed:
  libasn1-8-heimdal:i386 libgssapi3-heimdal:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhx509-5-heimdal:i386
  libkrb5-26-heimdal:i386 libldap-2.4-2:i386 libroken18-heimdal:i386 libwind0-heimdal:i386
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libwind0-heimdal
The following packages will be updated:
  libwind0-heimdal
1 packages updated, 0 new packages installed, 0 to be removed and 19 not updated.
5 packages not fully installed or removed.
You need to download 0B/49.1kB of files.
After this operation, an additional 0 B of disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 365705 files and directories currently installed.)
Preparing to unpack .../libwind0-heimdal_7.7.0+dfsg-2build1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (7.7.0+dfsg-2build1) onto (7.7.0+dfsg-2) ...
Configuring libwind0-heimdal:amd64 (7.7.0+dfsg-2build1) ...
Configuring libwind0-heimdal:i386 (7.7.0+dfsg-2build1) ...
Configuring libhx509-5-heimdal:i386 (7.7.0+dfsg-2build1) ...
Configuring libkrb5-26-heimdal:i386 (7.7.0+dfsg-2build1) ...
Configuring libheimntlm0-heimdal:i386 (7.7.0+dfsg-2build1) ...
Configuring libgssapi3-heimdal:i386 (7.7.0+dfsg-2build1) ...
Processing triggers for libc-bin (2.33-0ubuntu7) ...

Changed in heimdal (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package heimdal - 7.7.0+dfsg-2ubuntu1

---------------
heimdal (7.7.0+dfsg-2ubuntu1) impish; urgency=medium

  * Disable lto, to regain dep on roken, otherwise dependencies on amd64
    are different to i386 resulting in different files on amd64 and
    i386. LP: #1934936

 -- Dimitri John Ledkov <email address hidden> Tue, 20 Jul 2021 10:32:53 +0100

Changed in heimdal (Ubuntu):
status: In Progress → 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.