Ubuntu – How to force apt-get to update the state of package versions

11.04aptupdate-manager

I installed Natty Narwhal last night, and cam across a problem with update manager. I had initially instructed update manager to "Install updates", but the dialog that popped up stayed on "waiting…" with no progress for over 5 minutes. I pressed cancel, hoping to exit Update Manager and try again, but after the Update Manger updated, it claims I have a completely updated system, with no packages left to install. When Update Manager first popped up after installation, I had approx. 84.

How can I force apt-get (as I get the same "no updates" message there) to re-build the status of all my packages?

I tried the solution below with sudo dpkg --configure -a, but that ran without output, and I'm still not sure the packages advertised previously have been installed. sudo apt-get update && apt-get upgrade only gave me some updates to Chromium.

Best Answer

Copy and paste sudo dpkg --configure -a into the Terminal.

Then paste sudo apt-get update && sudo apt-get upgrade -y

You can also try: sudo apt-get install -f to fix broken dependencies.