Install python2.6 build dependencies

I try to install pidon2.6 buid dependencies using sudo apt-get build-dep python2.6 But I get error E: Could not find source package for python2.6

+3
source share
2 answers

This is because the source repositories are disabled in your /etc/apt/sources.list. Find the line:

deb http://archive.ubuntu.com/ubuntu <version-name> main restricted multiverse

Duplicate it and change 'deb' to 'deb-src', for example:

deb-src http://archive.ubuntu.com/ubuntu <version-name> main restricted multiverse

Now run:

sudo apt-get update

Then you can install the dependencies for Python by doing:

sudo apt-get build-dep python
+2
source

sudo apt-get build-dep python-defaults, and this question belongs to serverfault.com

+2
source

All Articles