Configuration

sudo시에 E: Could not get lock /var/lib/dpkg/lock-frontend 해결

JUNFUTURE 2023. 11. 22. 23:20

오류

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 5031 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), 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*

sudo dpkg --configure -a

 

(이후 sudo 명령어)

sudo apt update

 

sudo apt install 이든

sudo apt-get install 이든

 

둘 다 해결가능.

 

아오 그만 좀 떠라