when dpkg is broken it should auto repair itself

Bug #173309 reported by Trevor Schauls
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)

Bug Description

Binary package hint: dpkg

Steps to reproduce: 1.Run a update 2. "Accidentally" press the power button once it starts to install. 3. Try to update again.
My bug is that dpkg should auto repair itself if it is broken. In other words auto run gksudo "dpkg --configure -A".

Kjell Braden (afflux)
Changed in dpkg:
importance: Undecided → Wishlist
Revision history for this message
Martin (martin615) wrote :

Step 2 can be replaced with "update the system normally" or "install a package normally". It fails very often and requires the user to run "dpkg --configure -a" leaving them with a system they can't update or install any packages on.

Revision history for this message
Martin (martin615) wrote :

Btw, same thing with "apt-get install -f". Leaves the user with the same problem.

Revision history for this message
aysiu (ubuntubugzilla-psychocats) wrote :

At the very least, the error message should tell you to run

sudo dpkg --configure -a

instead of

dpkg --configure -a

which just tells you you don't have permission to run the command. It's silly. "You interrupted package management. Type in this command to continue." Okay I've typed the command. "I'm sorry. You don't have permission to type that command."

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Confirming because it affects several people.

Changed in dpkg (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers