Getting the error Error:BrokenCount>0 after installing packages

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

An error occurred.Please run the Package Manger form 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.


Solution 1:

I tried

sudo rm -vf /var/lib/apt/lists/*

To remove all the broken package information. Then I ran

sudo apt-get update

This restored the package database.

After that I opened Ubuntu Software Center and a dialog box appeared saying that i needed to repair some broken dependencies. I clicked on the Repair button and the problem was resolved.

Solution 2:

Open the Software Center. It may automatically recognize the problem, and ask you for permission to fix it. If so, let it. (That fixed this for me.)