[Bug 1682732] Re: package python3-xapian (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/python3/dist-packages/xapian/__init__.py', which is also in package python3-xapian1.3 1.3.4-0ubuntu1
Raoul Bhatia
raoul at bhatia.at
Fri Apr 14 08:00:18 UTC 2017
Below, I am providing my fix using dpkg.
(Please disregard any additional output that you will see from etckeeper, needrestart, etc.;
also, I have APT::Install-Recommends "0" and APT::Install-Suggests "0")
Maybe the solution is as easy as adding a "Replaces: python3-xapian1.3" or "Breaks: python3-xapian1.3" to the python3-xapian package?
# dpkg --purge --force-all python3-xapian1.3
> dpkg: python3-xapian1.3: dependency problems, but removing anyway as you requested:
> apt-xapian-index depends on python3-xapian (>= 1.4.3-1); however:
> Package python3-xapian is not installed.
> Package python3-xapian1.3 which provides python3-xapian is to be removed.
>
> (Reading database ... 70556 files and directories currently installed.)
> Removing python3-xapian1.3 (1.3.4-0ubuntu1) ...
> Processing triggers for libc-bin (2.24-9ubuntu2) ...
# apt --fix-broken install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Correcting dependencies... Done
> The following packages were automatically installed and are no longer required:
> libboost-filesystem1.61.0 libboost-iostreams1.61.0 libboost-system1.61.0 libcgmanager0 libperl5.22 libxapian-1.3-5 libxapian22v5 perl-modules-5.22 upstart
> Use 'apt autoremove' to remove them.
> The following additional packages will be installed:
> python3-xapian
> Suggested packages:
> xapian-doc
> The following NEW packages will be installed:
> python3-xapian
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> 431 not fully installed or removed.
> Need to get 0 B/463 kB of archives.
> After this operation, 3,647 kB of additional disk space will be used.
> Do you want to continue? [Y/n]
> [master b85798d] saving uncommitted changes in /etc prior to apt run
> 1 file changed, 0 insertions(+), 0 deletions(-)
> rewrite ld.so.cache (99%)
> (Reading database ... 70510 files and directories currently installed.)
> Preparing to unpack .../python3-xapian_1.4.3-1_amd64.deb ...
> Unpacking python3-xapian (1.4.3-1) ...
> Setting up python-apt-common (1.4.0~beta2) ...
[...]
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to xapian-bindings in Ubuntu.
https://bugs.launchpad.net/bugs/1682732
Title:
package python3-xapian (not installed) failed to install/upgrade:
trying to overwrite '/usr/lib/python3/dist-
packages/xapian/__init__.py', which is also in package
python3-xapian1.3 1.3.4-0ubuntu1
Status in xapian-bindings package in Ubuntu:
Confirmed
Bug description:
Happened while apt upgrade.
ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: python3-xapian (not installed)
ProcVersionSignature: Ubuntu 4.10.0-19.21-generic 4.10.8
Uname: Linux 4.10.0-19-generic x86_64
ApportVersion: 2.20.4-0ubuntu4
AptOrdering:
python3-xapian:amd64: Install
apt-xapian-index:amd64: Install
dkms:amd64: Install
NULL: ConfigurePending
Architecture: amd64
Date: Fri Apr 14 10:59:51 2017
DpkgTerminalLog:
Preparing to unpack .../python3-xapian_1.4.3-1_amd64.deb ...
Unpacking python3-xapian (1.4.3-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-xapian_1.4.3-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3/dist-packages/xapian/__init__.py', which is also in package python3-xapian1.3 1.3.4-0ubuntu1
ErrorMessage: trying to overwrite '/usr/lib/python3/dist-packages/xapian/__init__.py', which is also in package python3-xapian1.3 1.3.4-0ubuntu1
InstallationDate: Installed on 2016-04-23 (355 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
RelatedPackageVersions:
dpkg 1.18.10ubuntu2
apt 1.4
SourcePackage: xapian-bindings
Title: package python3-xapian (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/python3/dist-packages/xapian/__init__.py', which is also in package python3-xapian1.3 1.3.4-0ubuntu1
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xapian-bindings/+bug/1682732/+subscriptions
More information about the foundations-bugs
mailing list