解決Ubuntu中Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another proce...


解決Ubuntu中Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another proce...

 

百度到的方法
所以,第一種方法,我們只需要殺死之前的進程,釋放系統鎖就可以了:

ps -e|grep apt-get
顯示

6965 ? 00:00:01 apt-get
然后執行

sudo kill 6965
第二種方法,強制解鎖

sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
但是試了幾次卻不管用,可行性未知
===========================================
重啟 系統
sudo systemctl --force reboot
這個會重新啟動系統,所以使用前先保存一下需要保存的文件,這個方法是可行的


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM