求助,安装 Docker 失败

2021-08-01 10:17:25 +08:00
 CallmeDredd
Google 搜了好大一会儿了🤣试了好几个添加 pubkey 的方法,但是都没成功


> Installing Docker ........................... Docker installation failed, please visit https://docs.docker.com/install for instructions.

Last error: # Executing docker install script, commit: 28bc4d09b3938ea30c69407d198ee8ece52c3e12
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl gnupg >/dev/null
+ sh -c curl -fsSL "https://download.docker.com/linux/debian/gpg" | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
+ sh -c echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian buster stable" > /etc/apt/sources.list.d/d
ocker.list
+ sh -c apt-get update -qq >/dev/null
W: GPG error: https://download.docker.com/linux/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://download.docker.com/linux/debian buster InRelease' is not signed.
2198 次点击
所在节点    Docker
6 条回复
jackleel
2021-08-01 10:57:17 +08:00
apt-get update 一下,然后试试安装制定版本的 docker
AoEiuV020
2021-08-01 10:58:58 +08:00
系统是 debian ?没试过,但是这种东西只看官网就好,按理说官网几条命令直接复制粘贴就可以,
https://docs.docker.com/engine/install/debian/
CallmeDredd
2021-08-01 11:33:03 +08:00
@jackleel 感谢回复
我试了 update,参考了这篇博客 http://www.recall704.com/ops/install-docker-on-debian/尝试安装制定版本的 docker

apt install docker-engine=1.12.6-0~debian-jessie,之后提示是这样的
root@ip-172-2*-**-133:~# apt install docker-engine=1.12.6-0~debian-jessie
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1.12.6-0~debian-jessie' for 'docker-engine' was not found
CallmeDredd
2021-08-01 11:34:47 +08:00
@AoEiuV020 感谢回复
是的,系统是 debian10.8,按照官网的命令和各种“一键安装 docker”都试过了,每次都会提示 no punkey
lysS
2021-08-01 12:09:21 +08:00
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

这是官方的脚本,出错的话估计你之前折腾把系统环境搞坏了,如果方便可以重置下系统
CallmeDredd
2021-08-01 12:24:38 +08:00
@lysS 感谢大佬!!!重置系统果然有效!!!
祝大佬早日暴富!!!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/792953

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX