After running do-release-upgrade -d
on our staging EC2 instance, I've encountered a problem with dpkg.
My original problem was that mkvirtualenv command was failing with the following error:
Unknown distribution virtual 1.7.11
and some details I cannot recover, because I've erased python :(
But once I've removed python manually, and tried to re-install it, I started getting the following error at the rnd of the apt-get install process:
Setting up python-twisted-names (11.1.0-1) ...
/var/lib/dpkg/info/python-twisted-names.postinst: 8: /var/lib/dpkg/info/python-twisted-names.postinst: pycompile: not found
dpkg: error processing package python-twisted-names (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up python-twisted-web (11.1.0-1) ...
/var/lib/dpkg/info/python-twisted-web.postinst: 8: /var/lib/dpkg/info/python-twisted-web.postinst: pycompile: not found
dpkg: error processing package python-twisted-web (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
python-twisted-names
python-twisted-web
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any help is much appreciated.