package python3-distupgrade (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/python3/dist-packages/DistUpgrade/__init__.py', which is also in package python3-update-manager 1:0.164

Bug #1020229 reported by Anders Kaseorg
228
This bug affects 41 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

Selecting previously unselected package python3-distupgrade.
Unpacking python3-distupgrade (from .../python3-distupgrade_1%3a0.165_all.deb) ...
dpkg: error processing /var/cache/apt/archives/python3-distupgrade_1%3a0.165_all.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/DistUpgrade/__init__.py', which is also in package python3-update-manager 1:0.164
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

ProblemType: Package
DistroRelease: Ubuntu 12.10
Package: python3-distupgrade (not installed)
ProcVersionSignature: Ubuntu 3.5.0-2.2-generic 3.5.0-rc4
Uname: Linux 3.5.0-2-generic x86_64
NonfreeKernelModules: openafs
ApportVersion: 2.2.5-0ubuntu1
Architecture: amd64
Date: Mon Jul 2 14:26:32 2012
ErrorMessage: trying to overwrite '/usr/lib/python3/dist-packages/DistUpgrade/__init__.py', which is also in package python3-update-manager 1:0.164
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101202)
SourcePackage: ubuntu-release-upgrader
Title: package python3-distupgrade (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/python3/dist-packages/DistUpgrade/__init__.py', which is also in package python3-update-manager 1:0.164
UpgradeStatus: No upgrade log present (probably fresh install)
VarLogDistupgradeAptlog: Log time: 2011-11-16 13:29:53.604862

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

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

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
jerrylamos (jerrylamos) wrote :

2 July doing apt-get dist-upgrade
.....
Errors were encountered while processing:
 /var/cache/apt/archives/python3-distupgrade_1%3a0.165_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

upgrade stopped at that point.

Jerry

Revision history for this message
Szobonya Csaba (csaba215) wrote :

In package python3-distupgrade_1%3a0.165_all.deb the following file is dummy one(empty) '/usr/lib/python3/dist-packages/DistUpgrade/__init__.py'. I think removing that file from the package would fix the issue.

Revision history for this message
Anders Kaseorg (andersk) wrote :

Szobonya, no, it’s more complicated than that. The empty __init__.py file is important to how the Python module loader works.

The solution is for python3-distupgrade to declare ‘Breaks: python3-update-manager (<< 1:0.165)’ and ‘Replaces: python3-update-manager (<< 1:0.165)’.

tags: added: i386
tags: added: package-conflict
Colin Watson (cjwatson)
Changed in ubuntu-release-upgrader (Ubuntu):
status: Confirmed → Fix Committed
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:0.170

---------------
ubuntu-release-upgrader (1:0.170) quantal; urgency=low

  [ Brian Murray ]
  * DistUpgrade/DistUpgradeMain.py: call clone.save_state with
    scrub_sources set so that VarLogDistUpgradeAptclonesystemstate can be
    included in bug reports again

  [ Colin Watson ]
  * Declare Breaks/Replaces from python3-distupgrade to old versions of
    python3-update-manager (LP: #1020229).

  [ Jeremy Bicha ]
  * data/release-upgrades:
    - set release upgrades default back to "normal" instead of "lts"
 -- Colin Watson <email address hidden> Tue, 10 Jul 2012 11:50:11 +0100

Changed in ubuntu-release-upgrader (Ubuntu):
status: Fix Committed → 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.