pycompile will use /usr/local/bin/python2.X if available and python2.X is installed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Anyone who has a locally built python in /usr/local as well as the Ubuntu package with the same version. This is something that Debian/Ubuntu's python approach intends to support.
[Development Fix]
This bug was fixed upstream very soon after the version of python-defaults we ended up with in natty.
[Stable Fix]
The patch is trivial, call python with an absolute path, instead of relying on $PATH.
[Text Case]
1. Install python-all
2. Build and install cpython from source
OR
echo -e '#!/bin/sh\nexit 1' > /usr/local/
chmod +x /usr/local/
3. Install a python package such as python-
Success: It works
Failure: An error while setting up python-
[Regression Potential]
Patch is simple enough that I can't see any. The risk of any rebuild at all is higher than the impact of this patch.
[Original Report]
Problem installing -
sudo apt-get install linaro-image-tools
ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: python-
ProcVersionSign
Uname: Linux 2.6.38-11-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Thu Jan 12 13:54:21 2012
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
PackageArchitec
SourcePackage: beautifulsoup
Title: package python-
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
description: | updated |
description: | updated |
summary: |
- pycompile will use /usr/local/bin/python2.6 if available and python2.6 - isn't installed. + pycompile will use /usr/local/bin/python2.X if available and python2.X + is installed. |
description: | updated |
This solution worked for me: http:// ubuntuforums. org/showthread. php?t=1868190
$ pwd
/usr/local/bin
$ sudo mv python2.6 python2.6__
$ sudo dpkg --configure -a