赞
踩
今天在Ubuntu系统上安装工具时
sudo apt-get install git
报出如下错误
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
查了一下解决方案,差不多都一致
所以自己记录一下
首先查看是否有其他进程
sudo killall apt apt-get
结果如下
apt: no process found
apt-get: no process found
没有发现进程
继续执行以下命令
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
然后是配置package
sudo dpkg --configure -a
最后
sudo apt-get update
解决问题!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。