Sunday, November 22, 2009

Setting up Python2.6 on Ubuntu 8.04 LTS

If you wanna test the new Plone alpha release (Plone4.0alpha1) you'd need a 2.6 installation. If you are using your VPS and 8.04 LTS as your rock OS, you won't want to upgrade just for the python version.

Instead of building it yourself, the non debian way, you should use a package. That's very easy with Launchpad's rocking PPA feature.

Just add the proper sources (of python-dev) to your sources.list in /etc/apt/sources.list , make sure you import the pub key for the archive so apt won't complain , sudo apt-get update and sudo apt-get install python2.6. And you've got 2.6 packages made by Ubuntu's Python Chief , Matthias Klose. This is as per this blueprint.


To add the sources:
deb http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main 
deb-src http://ppa.launchpad.net/python-dev/ppa/ubuntu hardy main 


To add the key, just do:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D81367B9

No comments: