Server/에러 해결

[LINUX] unable to acquire the dpkg frontend lock 해결

개발윗미 2022. 9. 16. 16:48

[문제]

리눅스에서 apt를 통해 'htop' 프로그램을 설치하는 도중 에러가 발생했다.

 

[해결]

1. 모든 프로세스 종료

sudo killall apt apt-get

 

2. 위와 같이 진행 중인 프로세스가 없다고 한다면, 아래 세 가지의 디렉토리 삭제

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

 

3. 업데이트 수행

sudo dpkg --configure -a

sudo apt update