I need to uninstall python 2.7.6 and install 2.6 instead. how can I manage that. which python command gives (/usr/bin/python). my environment is ubuntu 14.04.

1 Answer 1


You could try:

apt-get remove python2.7

Don't remove python 2.7, instead have both at the same time

Insert the following in /etc/apt/sources.list:

deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main 
deb-src http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main

Or use another PPA of your choice. Then run:

apt-get update
apt-get install python2.6

Disclaimer: The PPA is just one I found on Google, no guarantees.

  • 2
    You don't remove python2.7 in versions of Ubuntu before 16.04. Too many things depend it on. It's a nice way to nuke your desktop.
    – muru
    Apr 21, 2016 at 12:36
  • it is quite late answer. Many part of the system have been broken and I am trying to figure out how to fix that
    – Omar Ali
    Apr 21, 2016 at 13:04
  • Do you have any suggestions !!!
    – Omar Ali
    Apr 21, 2016 at 13:05
  • Can't you just reinstall it again? sudo apt-get install --reinstall python2.7
    – Timo
    Apr 22, 2016 at 8:47
  • once the system collapse the terminal is gone and everything went bad. I had to re-install ubuntu :)
    – Omar Ali
    Apr 25, 2016 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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