Ubuntu – Upgrade manager wants me to do a partial upgrade


So here is my story…

I was doing upgrades to ubuntu the other day, and the power went out right in the middle of the upgrade, so now when I try to do upgrades it keeps asking me if I want to do a partial upgrade. I have heard this is bad and should be avoided, I also know there is a way to fix this via the command line, but I can't remember how, nor can I find anything on the internet.

Any help would be appreciated. Thanks
alt text

Best Answer

It looks like sudo dpkg --configure -a is the magical command.

Here is the dpkg man page’s explanation of the --configure -a options:

--configure package...|-a|--pending

Configure a package which has been unpacked but not yet configured. If -a or --pending is given […], all unpacked but unconfigured packages are configured.


Configuring consists of the following steps:

  1. Unpack the conffiles, and at the same time back up the old conffiles, so that they can be restored if something goes wrong.

  2. Run postinst script, if provided by the package.