Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am getting the following error in the top menu bar:

An error occurred.
Please run the Package Manager from the right-click menu or apt-get in a terminal to see what is wrong.
The error message was:'Error:BrokenCount>0'.
This usually means that your installed packages have unmet dependencies.

enter image description here

How do I solve this problem?

share|improve this question
What happens if you click 'repair' in the dialog? – poolie Jun 18 '13 at 6:04
Launch gnome-terminal and run sudo apt-get update sudo apt-get upgrade Do you get an error message? – Marcb Jun 18 '13 at 6:06
I tried it but it did not solved – Jimakoch Jun 18 '13 at 10:28
Did you try sudo apt-get -f install? – Braiam Aug 14 '13 at 0:06
Please post the output of sudo apt-get update && sudo apt-get install -f && sudo dpkg --configure -a. – Alaa Ali Sep 7 '13 at 8:10

In the Terminal, type:

sudo su
mv  /var/lib/dpkg/status  /var/lib/dpkg/status-bad
cp /var/lib/dpkg/status-old  /var/lib/dpkg/status
mv /var/lib/dpkg/available  /var/lib/dpkg/available-bad
cp /var/lib/dpkg/available-old  /var/lib/dpkg/available
rm -rf /var/lib/dpkg/updates/*
rm -rf /var/lib/apt/lists/*
mkdir /var/lib/apt/lists/partial
rm /var/cache/apt/*.bin
apt-get clean
apt-get autoremove
apt-get update
dpkg --configure -a
apt-get install -f
share|improve this answer
Can you please post in English and explain what these commands as well? It's really a bad idea to run commands without an explanation. – Kaz Wolfe Sep 12 '14 at 5:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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