V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
CallmeDredd
V2EX  ›  Docker

求助,安装 Docker 失败

  •  
  •   CallmeDredd · 2021-08-01 10:17:25 +08:00 · 2380 次点击
    这是一个创建于 1213 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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.
    6 条回复    2021-08-01 12:24:38 +08:00
    jackleel
        1
    jackleel  
       2021-08-01 10:57:17 +08:00
    apt-get update 一下,然后试试安装制定版本的 docker
    AoEiuV020
        2
    AoEiuV020  
       2021-08-01 10:58:58 +08:00 via Android
    系统是 debian ?没试过,但是这种东西只看官网就好,按理说官网几条命令直接复制粘贴就可以,
    https://docs.docker.com/engine/install/debian/
    CallmeDredd
        3
    CallmeDredd  
    OP
       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
        4
    CallmeDredd  
    OP
       2021-08-01 11:34:47 +08:00
    @AoEiuV020 感谢回复
    是的,系统是 debian10.8,按照官网的命令和各种“一键安装 docker”都试过了,每次都会提示 no punkey
    lysS
        5
    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
        6
    CallmeDredd  
    OP
       2021-08-01 12:24:38 +08:00
    @lysS 感谢大佬!!!重置系统果然有效!!!
    祝大佬早日暴富!!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1067 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:32 · PVG 06:32 · LAX 14:32 · JFK 17:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.