Another common error with the package manager is telling you that there is a problem with the update manager or software center and the error message tells you that you run a command like this:
sudo apt-get install f
I recommend you do it as the problem of incomplete installation or an update resolves, once this is done you can run the following command again:
sudo apt-get update
sudo apt-get upgrade