解決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...

 

百度到的方法
因此,第一種方法,咱們只須要殺死以前的進程,釋放系統鎖就能夠了:frontend

ps -e|grep apt-get
顯示ui

6965 ? 00:00:01 apt-get
而後執行進程

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

sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
可是試了幾回卻無論用,可行性未知
===========================================
重啓 系統
sudo systemctl --force reboot
這個會從新啓動系統,因此使用前先保存一下須要保存的文件,這個方法是可行的it

相關文章
相關標籤/搜索