0%

Ubuntu apt-get安装时报错

问题

在Ubuntu中使用apt-get进行安装时产生了如下错误:

1
2
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?

1-1

解决方法

分别执行下面三条命令,执行完成后则恢复正常。

1
2
3
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock

1-2

正在加载今日诗词....