error processing archive /var/cache/apt/archives/python-pip-whl_8.0.2-7_all.deb: trying to overwrite '/usr/share/python-wheels/html5lib-0.999-py2.py3-none-any.whl', which is also in package python-html5lib-whl 0.999-3build1

Bug #1546447 reported by Iain Lane
88
This bug affects 16 people
Affects Status Importance Assigned to Milestone
python-pip (Ubuntu)
Fix Released
Undecided
Unassigned
python-pip (nUbuntu)
New
Undecided
Unassigned

Bug Description

During a full-upgrade right now with x-proposed (in a container!),

Unpacking python-pip-whl (8.0.2-7) over (1.5.6-7ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/python-pip-whl_8.0.2-7_all.deb (--unpack):
 trying to overwrite '/usr/share/python-wheels/html5lib-0.999-py2.py3-none-any.whl', which is also in package python-html5lib-whl 0.999-3build1

I don't know anything about this particular piece of packaging but it seems like you want << versions-that-dropped-these-files?

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1546447] [NEW] error processing archive /var/cache/apt/archives/python-pip-whl_8.0.2-7_all.deb: trying to overwrite '/usr/share/python-wheels/html5lib-0.999-py2.py3-none-any.whl', which is also in package python-html5lib-whl 0.999-3build1

On Feb 17, 2016, at 09:51 AM, Iain Lane wrote:

>I don't know anything about this particular piece of packaging but it
>seems like you want << versions-that-dropped-these-files?

The Breaks/Replaces exist, and python-html5lib-whl is being dropped in
0.999-4, but the latter is currently stuck in -proposed for unrelated
reasons. I'm trying to clear that out and then all should be good.

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

On Wed, Feb 17, 2016 at 03:42:48PM -0000, Barry Warsaw wrote:
> On Feb 17, 2016, at 09:51 AM, Iain Lane wrote:
>
> >I don't know anything about this particular piece of packaging but it
> >seems like you want << versions-that-dropped-these-files?
>
> The Breaks/Replaces exist, and python-html5lib-whl is being dropped in
> 0.999-4, but the latter is currently stuck in -proposed for unrelated
> reasons. I'm trying to clear that out and then all should be good.

Yeah, so you have "python-html5lib-whl (<= 0.999-3)" and not << 0.999-4
- that's what I was getting at. The version is wrong given that our
python-html5lib-whl containing the conflicting files in question is
0.999-3build1 which is greater than 0.999-3, so the B/R don't apply
and that's why the upgrade failed for me.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-pip (Ubuntu):
status: New → Confirmed
Revision history for this message
Iain Lane (laney) wrote :

I got it for this one too on a different machine

  dpkg: warning: trying to overwrite '/usr/share/python-wheels/chardet-2.3.0-py2.py3-none-any.whl', which is also in package python-chardet-whl 2.3.0-1build1

Revision history for this message
Barry Warsaw (barry) wrote :

Thanks Laney, yep you're right. I was trying to be too clever (and also because I don't maintain all the packages). << is a better way to go.

Revision history for this message
William Grant (wgrant) wrote :

This is now broken in xenial proper.

Revision history for this message
Thiago Martins (martinx) wrote :

Yep, broken on Xenial...

Revision history for this message
Shane Synan (digitalcircuit) wrote :

For systems already in a broken state, will any workaround be needed once a fixed package is uploaded, or will it be sufficient to 'apt-get update && apt-get install -f'?

Revision history for this message
Shane Synan (digitalcircuit) wrote :

In the meantime, I managed to work around the issue with multiple trials of apt-get that resulted in something like the following:

sudo apt-get remove -f python-pip-whl python3-pip python-chardet-whl python-html5lib-whl python-virtualenv python3-virtualenv virtualenv
sudo apt-get autoremove
sudo apt-get install python3-pip python3-virtualenv virtualenv # (Optionally, python-virtualenv if you need that too)

At your own risk; I cannot guarantee this workaround will succeed for you.

Revision history for this message
Jader Gabriel (salvavidasti) wrote :

The solution of user digitalcircuit works for me!I

Revision history for this message
Barry Warsaw (barry) wrote :

FWIW, still waiting for LP to pick up python-pip 8.0.3-1 (and python-virtualenv 14.0.5+ds-2) which should fix this problem, assuming they migrate from proposed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-pip - 8.0.3-1

---------------
python-pip (8.0.3-1) unstable; urgency=medium

  * New upstream release.

 -- Barry Warsaw <email address hidden> Thu, 25 Feb 2016 17:15:32 -0500

Changed in python-pip (Ubuntu):
status: Confirmed → 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.