cannot install python2.7-dev
Hi guys, I have a debian wheezy stable (more or less) uptodate.
I originally installed sqeeze and it was updated/upgraded time by time. But the package management system is not ok, something went wrong and I have no idea what's happened and how to fix it. Actually I tried to install python2.7-dev (the version available is 2.7.3-6). I downloaded the package from http://packages.debian.org. The answer was: Code:
The following packages have unmet dependencies: Can someone tell me a solution? Try to install it from jessie? Force downgrade to 2.7.3-6? Try to find a compatible version? here is my source.list: Code:
# |
By looking at your sources.list I would not be asthoned if you have mixed packages from different versions.
So whats the output of Quote:
Quote:
|
dpkg --audit returns nothing.
Code:
# apt-get install python2.7-dev Code:
# dpkg -l python python2.7 |
I check this on my wheezy box
Quote:
Thus you can either try to correct this by removing python2.7 and reinstall. Hoping that the version magicaly align. Or dpkg --force-depends to just have it installed. |
Quote:
Code:
dpkg --force-downgrade -i python2.7*.deb libpython2.7*.deb Let's cross fingers so there are not other packages that depend on this version of python2.7 and libpython2.7 :). |
that made it worse: now I have:
Code:
# synaptic |
Sorry to hear that, pan64. Probably there are other packages that depend on python2.7 and libpython2.7 version 2.7.3-8. You might want to force the installation of this version of the packages. Of course, you will probably go back to the initial problem, but other than a downgrade, I'm not sure how to solve this issue.
This is not an easy task, but maybe tracking down all the packages that depend in python2.7 and libpython2.7, v. 2.7.3-8, removing them and reinstalling them from Stable? |
no, removing is not an option it will probably remove almost everything (for example gnome). donwgrade may solve this issue, but I need to find out which packages should be reinstalled. Is there a way to check if a package belongs to the stable release or something else?
|
Two things might help.
For individual packages use apt-cache policy pkgname. This shows the priority of repositories for the package. Also I'm not sure if shows the actuall origin. The other one if apt-cache showpkg pkgname | head. Which shows the /var/lib/apt/lists directory. Withtin are the package list of (all) used repositories. I guess I grep within might give. |
Why would you even start to force install different versions when you have to trouble shoot version mismatches?
You told us in the initial post that you have a Quote:
OFFTOPIC: Looking at your sources.list, is there any specific reason you don't have Debian's security repo in there? |
I have installed sqeeze and upgraded/updated several times. As you see some of the packages have higher versions (compared to the actual stable) therefore apt-get update and apt-get upgrade do nothing. For example I do not know how python 2.7.3-8 was installed.
(OFF: I don't know about that security repo at all, it is basically the default install) |
All times are GMT -5. The time now is 05:30 PM. |