Reproduced from www.serverfault.com:

Python 2.6 isn't available in lenny, you need to add either the testing (haven't tried this) or unstable (which is currently sid).

$ sudo apt-get install python2.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python2.6
Edit the /etc/apt/sources.list so that it looks similar to this:

deb http://ftp.uk.debian.org/debian lenny main
deb http://security.debian.org/ lenny/updates main

# so we can get latest packages
deb http://ftp.uk.debian.org/debian unstable main
Next, run apt-get update then run apt-get install python2.6. To run it, the command is python2.6 (or you can obviously create a symlink if you want it to be default).

I'm not sure if this is the best way, but it works well. I welcome others to suggest a better approach

Reproduced from www.serverfault.com:

Python 2.6 isn't available in lenny, you need to add either the testing (haven't tried this) or unstable (which is currently sid).

$ sudo apt-get install python2.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package python2.6
Edit the /etc/apt/sources.list so that it looks similar to this:

deb http://ftp.uk.debian.org/debian lenny main
deb http://security.debian.org/ lenny/updates main

# so we can get latest packages
deb http://ftp.uk.debian.org/debian unstable main
Next, run apt-get update then run apt-get install python2.6. To run it, the command is python2.6 (or you can obviously create a symlink if you want it to be default).

I'm not sure if this is the best way, but it works well. I welcome others to suggest a better approach

Thanx a lot:) it worked..any better approaches pls....

Thanx a lot:) it worked..any better approaches pls....

now that i have installed python-2.6, I want to install yapsnmp

when i try to download n configure yapsnmp-0.7.8, it gives

configure: error: Couldn't find libsnmp


n when i try running the netsnmp.py present under Python-2.6.2\yapsnmp-0.7.8\src, it gives:

ImportError: No module named netsnmpc

can anybody pls help me out??

You should be using your package manager to install these things. Installing from your package manager will satisfy these dependency problems you're having.

Comments
The only reasonable solution.

If you have a gnome desktop, open the menu System > Administration > Synaptic Package Manager and search packages containing snmp.

This article has been dead for over six months. Start a new discussion instead.