Ubuntu10.10 the default python version is 2.6Ubuntu11.04 the default python version is 2.7. This problem may also occur in debian. That is, when you upgrade python2.7python2.7-minimal, the system prompts presponingpackages... settinguppython2.7-minimal (2.7.1-1ubuntu4 )... linkingand
Ubuntu 10.10 python is 2.6 by default
Ubuntu 11.04 python is 2.7 By default
This problem also appears on debian.
It is prompted when you upgrade python2.7 to python2.7-minimal.
Precycling packages...
Setting up python2.7-minimal (2.7.1-1ubuntu4 )...
Linking and byte-compiling packages for runtime python2.7...
E: pycompile: 240: Requested versions are not installed
Dpkg: error processing python2.7-minimal (-- configure ):
Subprocess installed post-installation script returned error exit status 3
Errors were encountered while processing:
Python2.7-minimal
Problem details visible https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/693001
The problem is that the postinst script of python2.7-minimal is executed.
/Usr/share/python/runtime. d/public_modules.rtinstall
Script to be executed in public_modules.rtinstall
Pycompile-V 2.7/usr/lib/python2.7. At this time, python2.7 is not installed yet, leading to loop errors.
For more information, see http://bugs.debian.org/cgi-bin/bugreport.cgi? Bug = 600529
Solution:
After an error is prompted, modify/usr/share/python/runtime. d/public_modules.rtinstall to comment out all the contents,
Then apt-get-f install
Run pycompile-V 2.7/usr/lib/python2.7/dist-packages again.