Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i do the command python i get the folowing.

Python 2.6.8 (unknown, Apr  9 2013, 19:12:12) 
[GCC 4.7.2] on linux3
Type "help", "copyright", "credits" or "license" for more information.

I want to have python2.7 back to that command. so i have this:

Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

I have already tried to change the symlink in /usr/bin/python but don't work :(. I am also afraid that some programs will break.

share|improve this question
How did you get the 2.6.8 version? – chin Apr 14 '13 at 15:21
Becouse i was solving this question.… – Thomas15v Apr 15 '13 at 19:59
up vote 2 down vote accepted
sudo rm /usr/local/bin/python

Did the trick.

share|improve this answer
Glad you got it sorted, sorry I couldn't work out what was wrong :) – w4etwetewtwet Apr 10 '13 at 10:56

Try running sudo update-alternatives --config python

share|improve this answer
Don't work get error: update-alternatives: error: no alternatives for python – Thomas15v Apr 10 '13 at 10:05
Odd... how did the symlink "not work" by the way, because that's definitely the obvious way of doing it. – w4etwetewtwet Apr 10 '13 at 10:06
which python to make sure he didn't mangle up his path in .profile or .bash_rc – RobotHumans Apr 10 '13 at 10:24
The output of which python is /usr/local/bin/python. – Thomas15v Apr 10 '13 at 10:31
In that case change the symlink for /usr/local/bin/python and /usr/bin/python, to be on the safe side. – w4etwetewtwet Apr 10 '13 at 10:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.