I'd love to see an automatic repair of an interrupted dpkg, but I also know that'd take much longer to implement.
In the meantime, the message given to users should be to run
sudo dpkg --configure -a
instead of what they currently get, which is to run
dpkg --configure -a
Of course, when they run dpkg --configure -a, they also get an error message saying they aren't root so can't run the command, which is silly, since Ubuntu doesn't enable the root account by default, and the user just ends up confused.
Ubuntu doesn't enable the root PASSWORD by default, the account is ok.
just do a "sudo -s"
But the idea is good, to be more transparent.
aysiu(Brainstorm moderator)
wrote on the 31 Jul 08 at 19:52
Actually, sudo -s is a bad idea. It runs a root prompt but with the user's environment, which can lead to certain files in the user's home folder becoming owned by root.
sudo dpkg --configure -a should take care of the problem.
If someone desperately needs a persistent root login, she should use sudo -i instead of sudo -s