The following packages have unmet dependencies

I have the same Problem.
Sorry, that I’m not so good at the command line tool.
Which commands I have to enter in the command line tool to fix this issu? How can I downgrade the packages?

sudo aptitude reinstall python 2.7.13-2
sudo aptitude reinstall libpython-dev 2.7.13-2

??? Its not working… I know I’m the problem

if you use sudo aptitude install python (if this is the package that is actually stated in your error report) you should be presented with an information about the versions currently installed and if which one you want to downgrade. Just follow the details instructions.
I think I had used sudo aptitude install libpython-dev and aptitude resolved all unmet dependencies.

Thanks!!! :slight_smile:

First:
sudo aptitude install python

Second:
sudo aptitude install libpython-dev
DON’T accep the first solution!

 Keep the following packages at their current version:
  1. libpython-dev [Not Installed]
    
  2. libpython2.7-dev [Not Installed]
    

Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

 Downgrade the following packages:
  1. libpython2.7 [2.7.15-4 (now) -> 2.7.13-2+deb9u3 (stable)]
    
  2. libpython2.7-minimal [2.7.15-4 (now) -> 2.7.13-2+deb9u3 (stable)]
    
  3. libpython2.7-stdlib [2.7.15-4 (now) -> 2.7.13-2+deb9u3 (stable)]
    
  4. python2.7 [2.7.15-4 (now) -> 2.7.13-2+deb9u3 (stable)]
    
  5. python2.7-minimal [2.7.15-4 (now) -> 2.7.13-2+deb9u3 (stable)]
    

Accept this solution? [Y/n/q/?] y

5 Likes