1. Preliminary requirement:
$ sudo apt-get install python-software-properties2. Adding PPA (because Python2.6 is not available anymore on Ubuntu Server 12.04, by default):
$ sudo add-apt-repository ppa:fkrull/deadsnakes3. Update repository:
$ sudo apt-get update4. Installing Python2.6:
$ sudo apt-get install python2.6 python2.6-dev5. Change the symlink to Python2.6:
$ sudo ln -sfn /usr/bin/python2.6 /usr/bin/python6. Check the version:
$ python --version
That's it, and you're done :)