완벽한 다음 행보는 없다.

E: Could not get lock /var/lib/dpkg/lock - open .... E:Unable to lock the administration directory (/var/lib/dpkg/),..해결 (Ubuntu 16.04) 본문

Linux

E: Could not get lock /var/lib/dpkg/lock - open .... E:Unable to lock the administration directory (/var/lib/dpkg/),..해결 (Ubuntu 16.04)

We On Fire 2019. 2. 14. 17:13

apt-get 을 활용하다 보면 종종 마주치는 에러


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?



해결방법

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock



원인은 apt-get 실행 중 어떠한 원인 때문에 정지되었고, 잠긴(lock) 상태로 남아있기 떄문일 것이라고 하더라.



출처


https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process

Comments