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 Bugs, which is subscribed to 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xapian-bindings/+bug/1682732/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs