본문 바로가기
학부연구생/오류 모음집

could not get lock /var/lib/dpkg/lock-frontend

by ㅇㅏ도 2024. 2. 6.

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 63620
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

 

우선 실행중인 프로세스를 끈다. 

sudo killall apt apt-get

 

이후 디렉터리들을 삭제한다.

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
sudo dpkg --configure -a
sudo apt update

로 마무리 한다.