Monday, August 25, 2008

เมื่อเราสั่ง apt-get แล้วมีปัญหา

Problem when use apt-get.
sudo aptitude remove webminE: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?Reading package lists... DoneBuilding dependency tree
Reading state information... DoneReading extended state information
Initializing package states... DoneBuilding tag database... Done
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

  • สรุปมันคือ มี โพรเซส เช่น เราเปิด synaptic manager ค้างไว้อาไรประมาณเนี๋ย
  • มันเลย atitude หรือ apt-get ไม่ได้
Solved

sudo su
sudo rm /var/lib/apt/lists/lock
sudo apt-get update

Ref
http://linuxhalwa.blogspot.com/2013/11/how-to-fix-e-could-not-get-lock.html
http://ubuntuforums.org/showthread.php?t=1631059

No comments:

Post a Comment

Popular Posts