Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
2  
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

1 Answer 1

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
3  
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. –  Whaaaaaat Sep 12 at 5:09

Your Answer

 
discard

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.