On a fresh-today Raspbian build I did an apt-get update followed by an apt-get ugrade. I got the following error message:

sal@raspberrypi:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libqt4-network : Depends: libqtcore4 (= 4:4.8.2+dfsg-10+rpi1) but 4:4.8.2+dfsg-11+rpi1 is installed
                  Depends: libqtdbus4 (= 4:4.8.2+dfsg-10+rpi1) but 4:4.8.2+dfsg-11+rpi1 is installed
E: Unmet dependencies. Try using -f.

How can I fix this? It's currently impossible to apt-get install anything!

  • 1
    What happens when you try running apt-get -f install. – Peter Green Oct 15 '15 at 9:49

As the error message says, you have unmet dependencies, meaning that you are missing a piece of software (libqtcore4, libqtdbus4) that libqt4-network needs to run. Like the error message says, try running apt-get -f install libqt4-network to fix this.

Check the apt-get man page for more info.

| improve this answer | |

Try using aptitude. Aptitude has a stronger dependency resolve engine that apt-get, it tends to succeed where apt-get fails (or at least give you a few more options).

In case you don't have it:

sudo apt-get install aptitude


sudo aptitude update
sudo aptitude upgrade
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.