Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unable to lock the administration directory (/var/lib/dpkg/)

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
cc
Posts: 820
Joined: 2005-06-08 19:14

Unable to lock the administration directory (/var/lib/dpkg/)

#1 Post by cc »

hi

after apt-get update, I get the following error:

Code: Select all

E: Konnte Lock /var/lib/dpkg/lock nicht bekommen - open (11 Die Ressource ist zur Zeit nicht verfügbar)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
knows someone what's wrong and howto solve this problem ?

ajdlinux
Posts: 2452
Joined: 2006-04-23 09:37
Location: Port Macquarie, NSW, Australia

#2 Post by ajdlinux »

Try lsof | grep /var/lib/dpkg

Please post that because it will tell you if any other programs are trying to access it.

If that is empty maybe there is a lock file left around in /tmp or /var somewhere.

andrew

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#3 Post by Lavene »

This usually mean that some other process, like aptitude or synaptic, is runing. However, in some cases if apt is for some reason killed or otherwise exits in an 'unclean' fashion it will leave the lock file locked. So if you are sure no other apt process is running you can remove (or just rename) the file /var/lib/dpkg/lock to solve the problem. Apt will create a new one when required.

Tina :)

Post Reply