PoiNtEr->: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) in ubuntu ???

                             Difference between a dream and an aim. A dream requires soundless sleep, whereas an aim requires sleepless efforts.

Search This Blog

Saturday, August 6, 2011

Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) in ubuntu ???


Checked for "is another process using it?":
Code:

ps aux  | egrep -i 'apt|ftp|kpack|dpkg'  | less

I killed them all anyway, just to be sure:
Code:

killall -9 apt* kpackage dpkg


If you ever use synaptic (it's removed from my system), you should make that:
Code:

killall -9 apt* kpackage dpkg synaptic


Having confirmed that there were no "rogue" pkg. managers running, I checked, removed, & rechecked the lock file:
Code:

ls -l /var/lib/dpkg/lock
rm -f /var/lib/dpkg/lock
ls -l /var/lib/dpkg/lock

No comments:

Post a Comment