While trying to upgrade to Python 2.6 on one of my development machines tonight I was faced by an error message after running apt-get install python2.6:
After unpacking 0B of additional disk space will be used. Setting up python2.6-minimal (2.6.4-4) ... Linking and byte-compiling packages for runtime python2.6... pycentral: pycentral rtinstall: installed runtime python2.6 not found pycentral rtinstall: installed runtime python2.6 not found dpkg: error processing python2.6-minimal (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of python2.6: python2.6 depends on python2.6-minimal (= 2.6.4-4); however: Package python2.6-minimal is not configured yet. dpkg: error processing python2.6 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python2.6-minimal python2.6 E: Sub-process /usr/bin/dpkg returned an error code (1)
Attempting to install python2.6-minimal wouldn’t work, attempting to install python2.6 proved to have the same problem.
Luckily the Launchpad thread for python-central provided the answer: Upgrade python-central first!
:~# apt-get install python-central [snip] Setting up python2.6 (2.6.4-4) ... Setting up python-central (0.6.14+nmu2) ... :~#