sudo aptitude install python:2.6.6-2ubuntu1
HTH
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Where did you get python 2.6.6-2ubuntu2? From your output, it looks like
it is not in the maverick repository. Something is wrong there.
regards,
Christian
--
On Do, 24 M�r 2011, neophilic wrote:
> > Where did you get python 2.6.6-2ubuntu2? From your output, it looks like
> > it is not in the maverick repository. Something is wrong there.
>
> The "update manager" shows that i am downloading from the main server.
> So, should i degrade to python 2.6.6-2ubuntu1??
If you look at the output of your apt-cache policy commands it shows:
,----
| python:
| Installed: 2.6.6-2ubuntu2
| Candidate: 2.6.6-2ubuntu2
| Version table:
| *** 2.6.6-2ubuntu2 0
| 100 /var/lib/dpkg/status
| 2.6.6-2ubuntu1 0
| 500 http://archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
`----
That means, version 2.6.6-2ubuntu2 is installed, while in the main
archive is only version 2.6.6-2ubuntu1 is available. It doesn't know a
repository with your version, so that's why it says /var/lib/dpkg/status
in it's output. That means, either you have temporarily enabled another
repository and installed python from their or you must have used
something like dpkg directly to install that version.
I would recommend downgrading to the version in the official repository
to avoid trouble with updates later.
> But, still is there any way I could tell vim to use python2.7 instead
> of 2.6?
Possibly by installing a python-dev package that contains the
development libraries for version 2.7 from some repository. I don't
know, whether there exists one (backports maybe?)
Alternatively wait for 11.04 which will contain a 2.7 version of python.
It's only about 6 weeks or so until natty will be released (you could
already upgrade, if you dare ;)
regards,
Christian