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

重新运行安装命令。

posted @ 2019-10-10 09:25  暗夜影  阅读(1138)  评论(0编辑  收藏  举报