synaptic error E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)

Asked by begie

hi, I have same problems as above, but sudo dpkg --configure -a won't solve my problems.

sudo dpkg --configure -a
dpkg: error: dpkg status database is locked by another process

What has happened?? what is that mean??

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Best Thomas Krüger (thkrueger) said :
#1

The locking mechanism prevents two different programs to make changes to the application database at the same time.
There may be a stalled program or a background task locking the database.
At first you should restart the system. That will end all running processes locking the db.
If the error persists try to run "sudo dpkg --configure -a".

There is on thing bothering me: "Resource temporarily unavailable" means that the file system could not be accessed properly. Is it a network mount or could the filesystem be faulty?

Revision history for this message
begie (begie-amihan) said :
#2

Thanks Thomas Krüger, that solved my question.

Revision history for this message
begie (begie-amihan) said :
#3

Hi Mr. Kruger,

Thank you so much for your help. You solved my problems regarding ubuntu.

Best regards.

Begie