python2.5-dev won't install

Asked by Endolith

  Depends: python2.5 (=2.5.2-2ubuntu4.1) but 2.5.2-2ubuntu5 is to be installed

I currently have 2.5.2-2ubuntu5 python installed. I've tried changing servers and removing Medibuntu from the repositories list.

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Solved by:
Albert Damen
Last query:
Last reply:
Revision history for this message
Albert Damen (albrt) said :

Python2.5 version 2.5.2-2ubuntu5 has been available for testing in hardy-proposed for some time. Now it has been removed again, as the tests were not successful or incomplete. Therefore, python2.5-dev of the same version is not available anymore. Apparently, you have that python2.5 version installed.
To solve the problem, you need to downgrade python2.5 and python2.5-minimal to the currently available version:

$ sudo apt-get install python2.5-minimal=2.5.2-2ubuntu4.1 python2.5=2.5.2-2ubuntu4.1

After that, you should be able to install python2.5-dev

Revision history for this message
Endolith (endolith) said :

Thank you! Is there a way to downgrade without removing all the packages that depend on it?

The following packages will be DOWNGRADED:
0 upgraded, 0 newly installed, 1 downgraded, 323 to remove and 0 not upgraded.

Revision history for this message
Best Albert Damen (albrt) said :

Did you do the downgrade of python2.5 and python2.5-minimal on one line, like the line I gave above (note the "1 downgraded" in the output you posted, that does not look good)? That is important, otherwise python2.5 will be removed and take those >300 packages with it.

If you did both downgrades on one line, did you get any message that may explain why python2.5 could not be downgraded? Does "apt-cache policy python2.5" show version 2.5.2-2ubuntu4.1 as available?

Revision history for this message
Endolith (endolith) said :

Thanks Albert Damen, that solved my question.

Revision history for this message
Endolith (endolith) said :

(No I did not. Email had wrapped the lines.)