IT/linux

[linux] E: could not get lock /var/lib/dpkg/lock-frontend. It is held by process

주니- 2022. 8. 25. 22:58

문제

E: could not get lock /var/lib/dpkg/lock-frontend. It is held by process (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/dpgk/lock-frontend), is a nother process using it?

 

해결방법

 

killall apt apt-get

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

dpkg --configure -a
apt update