已解决 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

简介: 首次安装docker时出现的异常问题。

问题描述
看官方手册教程去操作 → https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

    在新主机上首次安装Docker Engine之前,需要设置Docker存储库。我使用的虚拟机。
$ sudo apt-get update

$ sudo apt-get install ca-certificates curl gnupg

执行上面两个命令,第一个命令没什么问题,第二个命令就会出现异常:
image.png
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?
为啥会出现这个bug我也懒得写了,反正看见异常bug就很烦,但是解决这个异常bug非常简单。

解决方法
将报错的文件删除即可,输入下面两个命令:

温馨提示:我输入第一个命令就解决了。


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

然后重新输入指令 sudo apt-get install ca-certificates curl gnupg 执行即可
image.png

执行过程中需要输入 y


image.png
目录
相关文章
|
29天前
Another app is currently holding the yum lock; waiting for it to exit
Another app is currently holding the yum lock; waiting for it to exit
9 0
|
Shell Docker 容器
解决:E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
为了让容器服务启动更加方面,于是自己手写了一个 docker-compose.yml 配置脚本。脚本内容如下:
1944 0
|
3月前
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
|
3月前
yum 报错:Another app is currently holding the yum lock; waiting for it to exit
开发过程中需要用到 yum 命令 有时候执行 yum 会报错如下
18 0
|
5月前
|
缓存 Ubuntu Linux
错误 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
错误 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
|
5月前
Install fail! Error: EBUSY: resource busy or locked, symlink
Install fail! Error: EBUSY: resource busy or locked, symlink
56 0
|
Android开发
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
347 0
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
|
Ubuntu
ubuntu 16.04安装软件常见错误 Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
  通过终端安装程序 sudo apt-get install xxx 时出错: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it   因为刚装好的Ubantu系统,内部缺少很多软件源,这时,系统会自动启动软件源更新进程“apt-get”,并且它会一直存活。
2424 0
Starting a Gradle Daemon, 5 busy and 1 incompatible and 1 stopped Daemons could not be reused, use --status for details FAILURE: Build failed with an
执行gradle build出的问题,查看hs_err_pid11064.log日志文件发现,是电脑的RAM不足导致
3973 0