안녕하세요 Stimpack 입니다.!    


오늘은 apt-get error 에 대해 알아 보겠습니다.!


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?



apt-get 명령어를 사용할 때 이와 같은 에러가 발생합니다.! 


apt-get 명령어가 안돼니 업데이트 업그레이드도 안돼고,, 불편한점이 많습니다.. 


우선 이 증상은 자신 또는 다른 사용자가 apt-get 을 사용 중일 때 발생한다는데 ..흠.!? 


우선 이 명령어는 주의해서 사용해야 합니다. 


증상을 해결 하기 위해서는 lock file을 강제 삭제 해주면 됩니다.


그리고 lock 파일 안에 있는 cache diretory도 삭제 해줘야 합니다. 


$sudo rm /var/lib/apt/lists/lock   (lock file 삭제)

 

$sudo rm /var/cache/apt/archives/lock   (cache diretory 삭제)


$sudo rm /var/lib/dpkg/lock  




밑에 참고 사이트에서 우분투 질문하는 곳에서 위에 증상에 대한 답변입니다.  꼭 주의해 주시기 바랍니다. 

This should be used as last resort. If you use this carelessly you can end up with a broken system. 

이것은 최후의 수단으로 사용해야 합니다. 이것을 부주의하게 사용하면 고장난 시스템으로 끝날 수 있습니다. 

Please try the other answers first before doing this

이 작업을 수행하기 전 먼저 다른 답변을 시도 하시기 바랍니다.!




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

+ Recent posts