python2.5-dev won't install

Asked by Endolith

python2.5-dev:
  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

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Albert Damen
Solved:
Last query:
Last reply:
Revision history for this message
Albert Damen (albrt) said :
#1

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 :
#2

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

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

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

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 :
#4

Thanks Albert Damen, that solved my question.

Revision history for this message
Endolith (endolith) said :
#5

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