시작하며
ansible로 apt 패키지 인스톨 하려고 하는데 이런 에러가 나고 실패 함
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
원인
ansible 애러라기 보다 dpkg(apt파일 압축해제 라이브러리)가 lock된것임
구글링해보니 apt-get install XXXX 같은 작업을 하다가 실행이 중단되면 lock에 걸리는것 같음
(중단한적이 없는데 왜?, 완료후 os 재시동은 했지만 왜 lock이 걸렸는지 모르겠음)
대응방법
$ sudo apt autoremove
"/var/lib/dpkg/lock-frontend" 등을 삭제 하라고 하는 글들도 많았는데
그냥 autoremove하니깐 해결됨
728x90