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

Asked by Philip Leininger

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
George Standish (george-standish-deactivatedaccount) said :
#1

Philip,

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

Good luck,
George

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

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

Revision history for this message
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”.

Revision history for this message
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
https://help.ubuntu.com/community/UsingTheTerminal#Starting%20a%20Terminal

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 :)

Revision history for this message
Jens Maucher (jensmaucher) said :
#5

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

What does "fuser" do?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

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.

Revision history for this message
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.