The command $ sudo apt-get install python2.7-dev
yields this result:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python2.7-dev : Depends: libexpat1-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have run sudo apt-get update
, sudo apt-get upgrade
and sudo apt-get dist-upgrade
before running the install command. I have tried switching the repository server from my local server (Czech Republic) to the Main server. I have tried installing the package using aptitude, the result was:
The following NEW packages will be installed:
libexpat1-dev{ab} libssl-dev{a} libssl-doc{a} python2.7-dev
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.4 MB of archives. After unpacking 47.9 MB will be used.
The following packages have unmet dependencies:
libexpat1-dev : Depends: libexpat1 (= 2.0.1-7.2ubuntu1.1) but 2.1.0-1ubuntu1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libexpat1-dev [Not Installed]
2) python2.7-dev [Not Installed]
Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
The aptitude's suggested "solution" doesn't actually do anything and has no effect. After printing out the above, it exists without an error code or any error message.
I have tried removing libexpat1, but way too many packages I need depend on it including, it seems, huge chunk of gnome.
None of the things I have tried had any effect, the result of the install command was still the same.
I have searched the web for the issue and found few posts that seem to be related to my problem, but though they may be "resolved", none of them helped me in any way (here are the two I didn't close before asking this question):