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

重新运行安装命令。

原文地址:https://www.cnblogs.com/Pan-Z/p/11645826.html