hi...i am trying to install python 2.6 on my debian system..

I followed the following instructions http://www.fps-gamer.net/installing-python-2-6-on-debian-lenny/

on doing aptitude install -t testing python-central

i get

E: Invalid record in the preferences file, no Package header


can any body pls reason out:(

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.

commented: The only reasonable solution. +4

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.