Solution to Python2.7 upgrade error during Ubuntu10.10 upgrade to 11.04 (errors occurred during wine installation)

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.