E: Could not get lock /var/lib/dpkg/lock-frontend - open
在安装Miniconda3之前需要安装curl,但是在
sudo apt install curl
之后出现了报错
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?
所以就查了一下,原链接StackExchange。
原因
1. ‘Synaptic Package Manager’ 或 ‘Software Updater’ 打开了;
2. 部分apt命令在终端运行;
3. 部分apt进程在后台运行。
解决方案
1.
sudo killall apt apt-get
发现不起作用。
2.
于是移除锁定的文件
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock*
然后就ok了。