I changed DEFAULT_VERSION to (2, 6) and upgrade failed again.
Here is the output with PYCOMPILE_DEBUG=1: """ Setting up python2.7-minimal (2.7.3-0ubuntu1) ... DEBUG:pycompile:argv: ['/usr/bin/pycompile', '-V', '2.7', '/usr/lib/python2.7/dist-packages'] DEBUG:pycompile:options: {'regexpr': None, 'version_range': ((2, 7), (2, 7)), 'pyr_mode': False, 'verbose': True, 'package': None} DEBUG:pycompile:args: ['/usr/lib/python2.7/dist-packages'] DEBUG:pycompile:requested versions: set([]) ERROR:pycompile:Requested versions are not installed dpkg: error processing python2.7-minimal (--configure): subprocess installed post-installation script returned error exit status 3 """
I changed DEFAULT_VERSION to (2, 6) and upgrade failed again.
Here is the output with PYCOMPILE_DEBUG=1: :argv: ['/usr/ bin/pycompile' , '-V', '2.7', '/usr/lib/ python2. 7/dist- packages' ] :options: {'regexpr': None, 'version_range': ((2, 7), (2, 7)), 'pyr_mode': False, 'verbose': True, 'package': None} :args: ['/usr/ lib/python2. 7/dist- packages' ] :requested versions: set([]) :Requested versions are not installed
"""
Setting up python2.7-minimal (2.7.3-0ubuntu1) ...
DEBUG:pycompile
DEBUG:pycompile
DEBUG:pycompile
DEBUG:pycompile
ERROR:pycompile
dpkg: error processing python2.7-minimal (--configure):
subprocess installed post-installation script returned error exit status 3
"""