当apt下载软件时,总是出现以下问题
sudo apt-get install isc-dhcp-server
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 apt-get update
sudo apt-get upgrade
如果上述方法在apt-get upgrade的时候就报错了呢
1.查看是否存在apt-get这个进程ps -aux | grep apt-get
,如果存在进程就kill进程,如果不存在,继续执行下一步步骤
2.直接删除锁文件
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock