E: could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporary unavailable) E: Una

1. 问题详细提示如下:

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is an other process using it?

2. 如何解决这种问题呢?

2.1 首先查看是否有apt-get这个程序在运行

ps aux|grep apt-get

2.2 如果发现存在这样的程序在运行那么就kill掉,否则执行2.3

2.3 直接删除锁文件

sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock

2.4 接下来,更新你的软件包源列表

$ sudo apt update
    或者
$ sudo apt-get update

猜你喜欢

转载自blog.csdn.net/weixin_43520099/article/details/107604174
今日推荐