[precise] dpkg can't force installation of multiarch packages with different contents

Bug #896817 reported by Philip Muškovac
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Medium
Unassigned

Bug Description

Thanks to bug 893826 I'm getting this on my precise setup:

$ sudo dpkg -i /var/cache/apt/archives/libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb
(Reading database ... 527084 files and directories currently installed.)
Preparing to replace libqt4-declarative 4:4.7.4-1ubuntu3 (using .../libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb) ...
Unpacking replacement libqt4-declarative ...
dpkg: error processing /var/cache/apt/archives/libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb (--install):
 './usr/share/doc/libqt4-declarative/LGPL_EXCEPTION.txt' is different from the same file on the system
Errors were encountered while processing:
 /var/cache/apt/archives/libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb

ok, bug acknowledged, now install the package anyway since I know the files are in fact the same:

$ sudo dpkg --force-all -i /var/cache/apt/archives/libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb
(Reading database ... 527084 files and directories currently installed.)
Preparing to replace libqt4-declarative 4:4.7.4-1ubuntu3 (using .../libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb) ...
Unpacking replacement libqt4-declarative ...
dpkg: error processing /var/cache/apt/archives/libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb (--install):
 './usr/share/doc/libqt4-declarative/LGPL_EXCEPTION.txt' is different from the same file on the system
Errors were encountered while processing:
 /var/cache/apt/archives/libqt4-declarative_4%3a4.7.4-1ubuntu4_amd64.deb

dpkg shouldn't error out there, as now I can't fix my dependencies if I don't want to remove the respective i386 packages and this doesn't have any more chances to break the system than using --force-overwrite with 2 not-multiarch packages.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: dpkg 1.16.1.1ubuntu3
ProcVersionSignature: Ubuntu 3.1.0-2.3-generic 3.1.0
Uname: Linux 3.1.0-2-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.26-0ubuntu1
Architecture: amd64
Date: Sun Nov 27 11:16:05 2011
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20111007)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: dpkg
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Philip Muškovac (yofel) wrote :
Changed in dpkg (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers