๊ณต๋ถ€/Spring

[๊ณต๋ถ€/Spring] ์—๋Ÿฌ - Could not get lock /var/lib/dpkg/lock-fronted

yulee_to 2022. 7. 29. 14:38

Spring


 ๐Ÿ“ŒCould not get lock /var/lib/dpkg/lock-fronted ์—๋Ÿฌ

๋‹ค๋ฅธ ํ”„๋กœ์„ธ์Šค๊ฐ€ ์ง„ํ–‰์ค‘์ด๋ผ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ์ด๋‹ค. ์ง„ํ–‰์ค‘์ธ ํ”„๋กœ์„ธ์Šค๋ฅผ ์ฃฝ์—ฌ์ฃผ๋ฉด ํ•ด๊ฒฐ๋œ๋‹ค.

๋ฐฉ๋ฒ• 1) 

sudo killall apt apt-get

 

๋ฐฉ๋ฒ• 2)

๋ฐฉ๋ฒ• 1์„ ์‹คํ–‰ํ–ˆ๋Š”๋ฐ ์ง„ํ–‰์ค‘์ธ ํ”„๋กœ์„ธ์Šค๊ฐ€ ์—†๋‹ค๊ณ  ๋œจ๋ฉด, ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ํ•˜๋‚˜ ํ•˜๋‚˜ ์‚ญ์ œํ•ด์ค€๋‹ค.

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
728x90