Ubuntu16.04 使用sudo apt-get install git 安装git服务器,结果出现下面的错误
E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
按照网上的方法,先是强制解锁:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
然鹅并没有乱用,依旧是报错
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
又尝试了
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock-frontend
还是没有用,错误还在那里
于是,查询进程
ps -e | grep apt<