unable to intall updates

Asked by Gary hall

<html>Cannot obtain lock:<br/><br/>E: dpkg was interrupted, you must manually run &apos;dpkg --configure -a&apos; to correct the problem.
</html>

When i try to install updates the above error message is returned, could you please advise on the steps to take next.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

If you have updates running, let them finish
If you have Synaptic open then close it
If you have Software Centre open then close it
If no GUI package apps are open then reboot.
If there is still this warning then run:

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

This will remove the lock and you can resume updates and so on

Only one application can access the package system, just like in Windows

Revision history for this message
Gary hall (gary-67) said :
#2

Thanks actionparsnip, that solved my question.

Revision history for this message
Alessandro (alessandrook) said :
#3

Thank God the issue is resolved!