E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)
yeah that pretty easy exactly to fix that just run on terminal like these :
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock
sudo dpkg --configure -a
sudo aptitude update
or another option that just reboot/restart your computer :D but it doesn't have technical experience IMO.
that was I should run
sudo rm -f /var/lib/dpkg/lock
instead of sudo rm -f /var/lib/dpkg
:(then that action show following error :
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
so, how solution for that trouble, here some of step to resolve that :
mkdir -p /var/lib/dpkg/ /var/lib/dpkg/alternatives/ /var/lib/dpkg/info/ /var/lib/dpkg/methods/ /var/lib/dpkg/parts/ /var/lib/dpkg/triggers/ /var/lib/dpkg/updates/
get a file "dpkg.status.0" that our automatic backup it.
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/
then changing the name to status
sudo mv dpkg.status.0 status
create a file which name available
touch /var/lib/dpkg/available
the last do update.
sudo aptitude update
afterwards you try to installing a packet that you want, I wish that work fine and well.
good luck then ;)
reference :
http://ubuntuforums.org/showthread.php?t=1260872&page=2
http://ubuntuforums.org/showthread.php?t=2009399
http://ubuntuforums.org/showthread.php?t=1449160
Tidak ada komentar:
Posting Komentar