- user@host:~$ sudo apt-get install screen
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- screen is already the newest version.
- The following packages will be upgraded:
- jockey-common
- 1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
- 97 not fully installed or removed.
- Need to get 0B/345kB of archives.
- After this operation, 0B of additional disk space will be used.
- (Reading database ... 137417 files and directories currently installed.)
- Preparing to replace python-apt 0.7.96.1ubuntu11 (using .../python-apt_0.7.96.1ubuntu11_i386.deb) ...
- Traceback (most recent call last):
- File "/usr/bin/pycentral", line 2304, in <module>
- main()
- File "/usr/bin/pycentral", line 2298, in main
- rv = action.run(global_options)
- File "/usr/bin/pycentral", line 1653, in run
- runtimes = get_installed_runtimes(with_unsupported=True)
- File "/usr/bin/pycentral", line 278, in get_installed_runtimes
- default_version = pyversions.default_version(version_only=True)
- File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
- 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.5.2
- 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/pycentral", line 2304, in <module>
- main()
- File "/usr/bin/pycentral", line 2298, in main
- rv = action.run(global_options)
- File "/usr/bin/pycentral", line 1653, in run
- runtimes = get_installed_runtimes(with_unsupported=True)
- File "/usr/bin/pycentral", line 278, in get_installed_runtimes
- default_version = pyversions.default_version(version_only=True)
- File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
- 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.5.2
- dpkg: error processing /var/cache/apt/archives/python-apt_0.7.96.1ubuntu11_i386.deb (--unpack):
- subprocess new pre-removal script returned error exit status 1
- Traceback (most recent call last):
- File "/usr/bin/pycentral", line 2304, in <module>
- main()
- File "/usr/bin/pycentral", line 2298, in main
- rv = action.run(global_options)
- File "/usr/bin/pycentral", line 1477, in run
- runtimes = get_installed_runtimes()
- File "/usr/bin/pycentral", line 278, in get_installed_runtimes
- default_version = pyversions.default_version(version_only=True)
- File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
- 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.5.2
- dpkg: error while cleaning up:
- subprocess installed post-installation script returned error exit status 1
- Preparing to replace jockey-common 0.5.10-0ubuntu5.1 (using .../jockey-common_0.5.10-0ubuntu5.2_all.deb) ...
- Traceback (most recent call last):
- File "/usr/bin/pycentral", line 2304, in <module>
- main()
- File "/usr/bin/pycentral", line 2298, in main
- rv = action.run(global_options)
- File "/usr/bin/pycentral", line 1653, in run
- runtimes = get_installed_runtimes(with_unsupported=True)
- File "/usr/bin/pycentral", line 278, in get_installed_runtimes
- default_version = pyversions.default_version(version_only=True)
- File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
- 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.5.2
- 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/pycentral", line 2304, in <module>
- main()
- File "/usr/bin/pycentral", line 2298, in main
- rv = action.run(global_options)
- File "/usr/bin/pycentral", line 1653, in run
- runtimes = get_installed_runtimes(with_unsupported=True)
- File "/usr/bin/pycentral", line 278, in get_installed_runtimes
- default_version = pyversions.default_version(version_only=True)
- File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
- 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.5.2
- dpkg: error processing /var/cache/apt/archives/jockey-common_0.5.10-0ubuntu5.2_all.deb (--unpack):
- subprocess new pre-removal script returned error exit status 1
- Traceback (most recent call last):
- File "/usr/bin/pycentral", line 2304, in <module>
- main()
- File "/usr/bin/pycentral", line 2298, in main
- rv = action.run(global_options)
- File "/usr/bin/pycentral", line 1477, in run
- runtimes = get_installed_runtimes()
- File "/usr/bin/pycentral", line 278, in get_installed_runtimes
- default_version = pyversions.default_version(version_only=True)
- File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
- 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.5.2
- dpkg: error while cleaning up:
- subprocess installed post-installation script returned error exit status 1
- Errors were encountered while processing:
- /var/cache/apt/archives/python-apt_0.7.96.1ubuntu11_i386.deb
- /var/cache/apt/archives/jockey-common_0.5.10-0ubuntu5.2_all.deb
- E: Sub-process /usr/bin/dpkg returned an error code (1)
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Here's my /usr/share/python/debian_defaults file.
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [DEFAULT]
- # the default python version
- default-version = python2.5.2
- # all supported python versions
- supported-versions = python2.5.2
- # formerly supported python versions
- old-versions = python2.3, python2.4
- # unsupported versions, including older versions
- unsupported-versions = python2.3, python2.4