package libperl5.22 5.22.1-9 failed to install/upgrade: trying to overwrite shared '/usr/share/doc/libperl5.22/changelog.Debian.gz', which is different from other instances of package libperl5.22:i386
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
pkgbinarymangler (Ubuntu) |
Fix Released
|
High
|
Balint Reczey | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Pkgstripfiles generates different stripped documentation for arch:any packages depending on if arch:all packages are built at the same time. In practice it means that amd64 packages may end up different file contents of doc files compared to other architectures making multiarch installation of the affected packages impossible without workarounds.
* To fix affected packages by a rebuild the pkgbinarymangler package needs to be backported, too.
* The fix in pkgstripfiles is skipping symlinking documentation to dependent packages with identical content when the dependent packages are not built.
[Test Case]
* To test pkgbinarymangler rebuild perl i386 packages without arch:all packages with the fixed pkgbinarymangler package and observe the following message in the build log:
...
Skipping perl-modules-5.26 because it is not to be built
...
* Note that PPA builds skip the mangling steps thus the package needs to be built in sbuild/pbuilder/in the official archive with pkgbinarymangler added as an extra package in case of a local build.
* The resulting libperl5.2? package can also be analyzed to see changelog.Debian.gz not symlinked to perl-modules-5.2?'s changelog, but to check if the original bug is fixed just install libperl5.26:amd64 and libperl5.26:i386 using multiarch (here we assume the current architecture is amd64):
$ sudo dpkg --add-architecture i386
$ sudo apt update
$ sudo apt install libperl5.26:i386
[Regression Potential]
* The pkgbinarymangler fix may break the pkgstripfiles script causing FTBFS of unrelated packages or could cause building not stripped packages. The former problem would be caught early, while the latter can be avoided by checking the build logs of a few other packages rebuilt with the fixed pkgbinarymangler package.
[Original Bug Text]
Don't run aplication after upgrade from 14.04
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: libperl5.22 5.22.1-9
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Sun Apr 24 21:08:20 2016
DpkgTerminalLog:
Preparing to unpack .../libperl5.
Unpacking libperl5.22:i386 (5.22.1-9) ...
dpkg: error processing archive /var/cache/
trying to overwrite shared '/usr/share/
DuplicateSignature:
Unpacking libperl5.22:i386 (5.22.1-9) ...
dpkg: error processing archive /var/cache/
trying to overwrite shared '/usr/share/
ErrorMessage: trying to overwrite shared '/usr/share/
InstallationDate: Installed on 2016-04-24 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageV
dpkg 1.18.4ubuntu1
apt 1.2.10ubuntu1
SourcePackage: perl
Title: package libperl5.22 5.22.1-9 failed to install/upgrade: trying to overwrite shared '/usr/share/
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Changed in perl (Ubuntu): | |
importance: | Undecided → High |
tags: | added: zesty |
tags: |
added: artful removed: yakkety |
tags: |
added: bionic removed: zesty |
tags: | added: rls-bb-incoming |
tags: | added: id-5b2bdda1b1a060708081efe3 |
tags: | added: cosmic |
Changed in perl (Ubuntu): | |
assignee: | nobody → Balint Reczey (rbalint) |
tags: | added: patch |
description: | updated |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.