Instructions to manually run 'sudo dpkg --configure -a'

Asked by Philip Leininger on 2010-05-10

Tried to install updates and got error message.... E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

How do I run this program manually....?

Question information

English Edit question
Ubuntu update-manager Edit question
No assignee Edit question
Last query:
Last reply:


Open a terminal (Applications / Accessories / Terminal) then enter "sudo dpkg --configure -a"

Good luck,

If that doesn't work then in the same terminal run:

sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

Should be ok. Make sure you have no updates running and do not have software centre open

Sam_ (and-sam) said : #3

Sam suggests this article as an answer to your question:
FAQ #52: “'dpkg --configure -a' problem when trying to run Synaptic”.

Tom (tom6) said : #4

Hi :)

I was just wondering if this question has been solved yet? There are various ways of getting to a command-line

Once you get there you can check what commands do by using "-h" after a command. In this case that would be

sudo -h
dpkg -h

sometimes you need to use a "--help" instead of the "-h" but it will tell you when you try the "-h" tag. This is quite a useful way of checking answers given in a public forum ;) . Oh, once on the command-line try

sudo dpkg --configure -a

the "sudo" part will ask you for your normal user password and wont give you any stars as you type. I hope something here helps! Please let us know how this goes.
Good luck and regards from
Tom :)

Jens Maucher (jensmaucher) said : #5

You said "sudo fuser -vki ...."

What does "fuser" do?

When you use apt-get / software-centre etc. It locks the packages so no other apps can access them. If the process crashes and doesn't release the lock then you can get issues. The fuser command using those options will release the lock.

Jens Maucher (jensmaucher) said : #7

Ok, thanks.

Can you help with this problem?

Provide an answer of your own, or ask Philip Leininger for more information if necessary.

To post a message you must log in.