package software-center 4.0.3 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-central (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
GUI update stalled after clicked "Install Updates", so I had to kill it. I think the important thing is that earlier in the week I symlinked /usr/bin/python to Python2.6 instead of the installed Python2.7: "ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.7"
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
stav@bluqt:~$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
stav@bluqt:~$ apt-cache policy software-center
software-center:
Installed: 4.0.3
Candidate: 4.0.4
Version table:
4.0.4 0
500 http://
*** 4.0.3 0
100 /var/lib/
4.0 0
500 http://
3) What you expected to happen
I expected apt-get to upgrade all my packages and exit mornally.
4) What happened instead
What happened was that a Python stacktrace was displayed and the program exited with an error status (1)
stav@bluqt:~$ sudo kill 4626 [update-manager]
stav@bluqt:~$ sudo apt-get update
stav@bluqt:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
apt apt-transport-https apt-utils banshee banshee-
bind9-host chromium-browser chromium-
compiz-core compiz-gnome compiz-plugins cups cups-bsd cups-client cups-common cups-ppdc dnsutils initramfs-tools
initramfs-
libdecoration0 libdns69 libgpod-common libgpod4 libisc62 libisccc60 libisccfg62 liblwres60 nautilus-sendto ntpdate
software-center xserver-
43 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.0 MB of archives.
After this operation, 516 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Fetched 31.0 MB in 4min 25s (117 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 141591 files and directories currently installed.)
Preparing to replace ntpdate 1:4.2.6.
Unpacking replacement ntpdate ...
Preparing to replace chromium-
Unpacking replacement chromium-
Preparing to replace chromium-
Unpacking replacement chromium-
Preparing to replace libcups2 1.4.6-5ubuntu1.2 (using .../libcups2_
Unpacking replacement libcups2 ...
Preparing to replace chromium-browser 12.0.742.
Unpacking replacement chromium-browser ...
Preparing to replace chromium-
Unpacking replacement chromium-
Preparing to replace apt 0.8.13.2ubuntu3 (using .../apt_
Unpacking replacement apt ...
Processing triggers for man-db ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-support ...
Setting up apt (0.8.13.2ubuntu4) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <email address hidden>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <email address hidden>" not changed
gpg: Total number processed: 2
gpg: unchanged: 2
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 141593 files and directories currently installed.)
Preparing to replace apt-utils 0.8.13.2ubuntu3 (using .../apt-
Unpacking replacement apt-utils ...
Preparing to replace initramfs-tools 0.98.8ubuntu3 (using .../initramfs-
Unpacking replacement initramfs-tools ...
Preparing to replace initramfs-tools-bin 0.98.8ubuntu3 (using .../initramfs-
Unpacking replacement initramfs-tools-bin ...
Preparing to replace apt-transport-https 0.8.13.2ubuntu3 (using .../apt-
Unpacking replacement apt-transport-https ...
Preparing to replace bind9-host 1:9.7.3.
Unpacking replacement bind9-host ...
Preparing to replace dnsutils 1:9.7.3.
Unpacking replacement dnsutils ...
Preparing to replace libisc62 1:9.7.3.
Unpacking replacement libisc62 ...
Preparing to replace libdns69 1:9.7.3.
Unpacking replacement libdns69 ...
Preparing to replace libisccc60 1:9.7.3.
Unpacking replacement libisccc60 ...
Preparing to replace libisccfg62 1:9.7.3.
Unpacking replacement libisccfg62 ...
Preparing to replace liblwres60 1:9.7.3.
Unpacking replacement liblwres60 ...
Preparing to replace libbind9-60 1:9.7.3.
Unpacking replacement libbind9-60 ...
Preparing to replace libgpod4 0.8.0-2 (using .../libgpod4_
Unpacking replacement libgpod4 ...
Preparing to replace banshee 2.0.0-2ubuntu1 (using .../banshee_
Unpacking replacement banshee ...
Preparing to replace banshee-
Unpacking replacement banshee-
Preparing to replace banshee-
Unpacking replacement banshee-
Preparing to replace compiz-gnome 1:0.9.4+
Unpacking replacement compiz-gnome ...
Preparing to replace compiz-plugins 1:0.9.4+
Unpacking replacement compiz-plugins ...
Preparing to replace libdecoration0 1:0.9.4+
Unpacking replacement libdecoration0 ...
Preparing to replace compiz-core 1:0.9.4+
Unpacking replacement compiz-core ...
Preparing to replace compiz 1:0.9.4+
Unpacking replacement compiz ...
Preparing to replace libcupscgi1 1.4.6-5ubuntu1.2 (using .../libcupscgi1
Unpacking replacement libcupscgi1 ...
Preparing to replace libcupsdriver1 1.4.6-5ubuntu1.2 (using .../libcupsdriv
Unpacking replacement libcupsdriver1 ...
Preparing to replace libcupsimage2 1.4.6-5ubuntu1.2 (using .../libcupsimag
Unpacking replacement libcupsimage2 ...
Preparing to replace libcupsmime1 1.4.6-5ubuntu1.2 (using .../libcupsmime
Unpacking replacement libcupsmime1 ...
Preparing to replace libcupsppdc1 1.4.6-5ubuntu1.2 (using .../libcupsppdc
Unpacking replacement libcupsppdc1 ...
Preparing to replace cups-common 1.4.6-5ubuntu1.2 (using .../cups-
Unpacking replacement cups-common ...
Preparing to replace cups-bsd 1.4.6-5ubuntu1.2 (using .../cups-
Unpacking replacement cups-bsd ...
Preparing to replace cups-client 1.4.6-5ubuntu1.2 (using .../cups-
Unpacking replacement cups-client ...
Preparing to replace cups-ppdc 1.4.6-5ubuntu1.2 (using .../cups-
Unpacking replacement cups-ppdc ...
Preparing to replace cups 1.4.6-5ubuntu1.2 (using .../cups_
cups stop/waiting
Unpacking replacement cups ...
Preparing to replace libgpod-common 0.8.0-2 (using .../libgpod-
Unpacking replacement libgpod-common ...
Preparing to replace nautilus-sendto 2.32.0-0ubuntu1 (using .../nautilus-
Unpacking replacement nautilus-sendto ...
Preparing to replace software-center 4.0.3 (using .../software-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
runtimes = get_installed_
File "/usr/bin/
default_version = pyversions.
File "/usr/share/
raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.7
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
runtimes = get_installed_
File "/usr/bin/
default_version = pyversions.
File "/usr/share/
raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.7
dpkg: error processing /var/cache/
subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
runtimes = get_installed_
File "/usr/bin/
default_version = pyversions.
File "/usr/share/
raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.7
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace xserver-
Unpacking replacement xserver-
Preparing to replace xserver-
Unpacking replacement xserver-
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 changed doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Processing triggers for menu ...
Processing triggers for gconf2 ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Processing triggers for libglib2.0-0 ...
Processing triggers for python-support ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: software-center 4.0.3
ProcVersionSign
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Tue Jul 12 15:39:51 2011
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitec
SourcePackage: software-center
Title: package software-center 4.0.3 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | software-center (Ubuntu) → python-central (Ubuntu) |
> I symlinked /usr/bin/python to Python2.6 instead of
> the installed Python2.7: "ValueError: /usr/bin/python
> does not match the python default version. It must
> be reset to point to python2.7"
Files in /usr/bin are system managed. A user should not change them. If you do, you have broken your system.
The error message you report is *not* a bug but a safety mechanism to guard against users who have broken their systems.
If you desire to use a different version yourself, please set such a symlink in /usr/local/ bin/python.
You can not expect the system packaged software to work with a modified /usr/bin/python.
Please see these messages:
http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 485393# 14 bugs.debian. org/cgi- bin/bugreport. cgi?bug= 573315# 15 bugs.debian. org/cgi- bin/bugreport. cgi?bug= 597424# 10
http://
http://