Ubuntu Geek

Ubuntu Linux Tutorials,Howtos,Tips & News | Gutsy,Hardy,Intrepid

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed

  • Follow Us on Twitter

  • Sponsor


  • Categories

  • Meta

  • Sponsor

  • Archives

  • Support Ubuntugeek

    Amount $:
    Website(Optional):


  • Favourite Sites

Fix for ValueError: the symlink /usr/bin/python does not point to the python default version

Posted by admin on February 9th, 2008 Email This Post Email This Post

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

When i try to install some program which is developed in python i am getting teh following error in Gutsy

ValueError: the symlink /usr/bin/python does not point to the python default version. It must be reset to point to python2.5

This is because by default Gutsy Gibbon will come with python version 2.5 so we need to downgrade this version to 2.4

Here’s how to downgrade your default version in gutsy to Python 2.4 without those errors.

Caution :- This is only work around and after changing this other programs may not work

If you haven’t already, symlink /usr/bin/python to /usr/bin/python2.4

sudo ln -s /usr/bin/python2.4 /usr/bin/python

Edit your /usr/share/python/debian_defaults/ file

sudo vi /usr/share/python/debian_defaults

The initial few lines should read

[DEFAULT]
# the default python version
default-version = python2.5

Change the above line to the following

default-version = python2.4

Save and exit the file

Then try to install your application again it should work without any problem

Share/Save/Bookmark

Related Articles

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>