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”的错误,spa

 

解决方案之一是杀死全部apt进程:code

使用命令查看apt进程blog

ps -A | grep apt

找到进程ID,杀死进程

sudo kill -9 进程ID

从新运行安装命令。it

相关文章
相关标签/搜索