Ubuntu-apt 時出現“Unable to lock the administration directory (/var/lib/dpkg/)”錯誤


在Ubuntu中使用apt安裝軟件時出現“Unable to lock the administration directory (/var/lib/dpkg/)  is another process using it”的錯誤,

 

解決方案之一是殺死所有apt進程:

使用命令查看apt進程

ps -A | grep apt

找到進程ID,殺死

sudo kill -9 進程ID

重新運行安裝命令。


免責聲明!

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



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