python-profiler fails to install due to manually installed python2.5

Bug #644854 reported by Stuart Bishop
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
python-profiler (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: python-profiler

Under Lucid, I had installed python2.5 from source into /usr/local. This caused the maverick upgrade to fail.

$ sudo apt-get install python-profiler
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  python-profiler
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 0B/41.2kB of archives.
After this operation, 233kB of additional disk space will be used.
Selecting previously deselected package python-profiler.
(Reading database ... 149904 files and directories currently installed.)
Unpacking python-profiler (from .../python-profiler_2.6.6-0ubuntu1_all.deb) ...
Setting up python-profiler (2.6.6-0ubuntu1) ...
python2.5: can't open file 'py_compile.py': [Errno 2] No such file or directory
dpkg: error processing python-profiler (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 python-profiler
E: Sub-process /usr/bin/dpkg returned an error code (1)

Work around is to temporarily rename the python2.5 executable while installing the package.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: python-profiler (not installed)
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Wed Sep 22 09:15:03 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LANGUAGE=en_AU:en_GB:en
 PATH=(custom, user)
 LANG=en_AU.utf8
 SHELL=/bin/bash
SourcePackage: python-profiler

Revision history for this message
Sancho (sashb) wrote :

Same problem

Revision history for this message
Pauli Virtanen (pauli-virtanen) wrote :

Fails also on Natty --- there it's more probable to occur, because Ubuntu no longer ships 2.5 packages, so if you have it, you have to install it manually to /usr/local

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

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

Changed in python-profiler (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Egges (mountainpaul) wrote :

Slightly different error message for me.

The following NEW packages will be installed:
  python-profiler
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/41.2 kB of archives.
After this operation, 233 kB of additional disk space will be used.
(Reading database ... 329701 files and directories currently installed.)
Unpacking python-profiler (from .../python-profiler_2.6.6-0ubuntu1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/python-profiler_2.6.6-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/lib/python2.5/profile.py', which is also in package python2.5 2.5.6-0~ppa1~natty1
Errors were encountered while processing:
 /var/cache/apt/archives/python-profiler_2.6.6-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

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.