解决方法

docker-ce安装时出现错误:

dpkg: error processing package docker-ce (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

在这里插入图片描述

输入以下命令:

user_1@test:~$ cd /var/lib/dpkg
user_1@test:/var/lib/dpkg$ sudo mv info info.bak
user_1@test:/var/lib/dpkg$ sudo mkdir info
user_1@test:/var/lib/dpkg$ sudo apt-get install docker-ce docker-ce-cli containerd.io

再次试验,安装成功

user_1@test:/var/lib/dpkg$ docker -v
Docker version 19.03.5, build 633a0ea838

参考文档:Errors were encountered while processing 解决方法

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐