/usr/bin/python2 overwrites file in old versions of python-minimal

Bug #954609 reported by Colin Watson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
Fix Released
Medium
Unassigned
Precise
Fix Released
Medium
Unassigned
python2.7 (Ubuntu)
Fix Released
High
Matthias Klose
Precise
Fix Released
High
Matthias Klose

Bug Description

In a test upgrade from lucid to precise:

Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.3~rc1-1ubuntu2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/python2.7_2.7.3~rc1-1ubuntu2_i386.deb (--unpack):
 trying to overwrite '/usr/bin/python2', which is also in package python-minimal 2.6.5-0ubuntu1

At minimum, a Replaces is needed here.

Wasn't the old layout better, though? This seems to make more sense in a -defaults package than in a versioned package; although I realise that it's arguably a moot point given that there won't be a python2.8. But still.

Colin Watson (cjwatson)
affects: python-defaults (Ubuntu) → python2.7 (Ubuntu)
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 954609] [NEW] /usr/bin/python2 overwrites file in old versions of python-minimal

The new /usr/bin/python2 madness comes straight to us from upstream, so it's
in the 2.7 package. The old one was self inflicted.

Changed in python2.7 (Ubuntu):
status: New → Triaged
importance: Undecided → High
milestone: none → ubuntu-12.04-beta-2
Colin Watson (cjwatson)
tags: added: lucid2precise
tags: added: rls-mgr-p-tracking
Revision history for this message
Steve Langasek (vorlon) wrote :

For reference, this was in python-minimal in lucid but not in any later releases. So Replaces: python-minimal (<< 2.6.6-2ubuntu1) should suffice.

Changed in python2.7 (Ubuntu Precise):
assignee: nobody → Matthias Klose (doko)
Martin Pitt (pitti)
Changed in python2.7 (Ubuntu Precise):
milestone: ubuntu-12.04-beta-2 → ubuntu-12.04
Revision history for this message
Matthias Klose (doko) wrote :

no madness, but a now accepted PEP. these files should go into the python-defaults package for the LTS. they are removed in python2.7

Changed in python2.7 (Ubuntu Precise):
status: Triaged → Fix Released
Changed in python-defaults (Ubuntu Precise):
importance: Undecided → Medium
milestone: none → ubuntu-12.04
status: New → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 954609] Re: /usr/bin/python2 overwrites file in old versions of python-minimal

Since upstream provides them as part of python2.7, it seems like unnecessary
work to remove it from python2.7 and add it to python-defaults.

Revision history for this message
Matthias Klose (doko) wrote :

now fixed in precise

Changed in python-defaults (Ubuntu Precise):
status: In Progress → 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.