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

could not get lock

by ㅇㅏ도 2024. 2. 6.

자주 나오는 오류이다. 

 

E: Could not get lock /var/lib/apt/lists/lock. It is held by process 2244 (aptd)

N: Be aware that removing the lock file is not a solution and may break your system.

E: Unable to lock directory /var/lib/apt/lists/

 

 

sudo  rm /var/lib/apt/lists/* -vf
sudo apt-get update

위의 코드를 실행하면 오류 없이 가능하다.