【问题标题】:Error occurring during the signature verification of apt-get updateapt-get update 签名验证出错
【发布时间】:2019-06-12 13:37:28
【问题描述】:

我按照官方 docker 说明从 https://docs.docker.com/install/linux/docker-ce/ubuntu/ 在 ubuntu 18.04 LTS 上安装 docker

使用我运行的设置存储库:

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

最后

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

然后,运行 sudo apt-get update 我有错误:

Hit:1 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                       
Hit:3 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease                               
Err:1 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic InRelease                                         
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                        
Ign:7 https://download.docker.com/linux/ubuntu buster InRelease                                              
Err:2 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease                                
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Hit:8 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                                    
Hit:4 http://cdn-fastly.deb.debian.org/debian experimental InRelease                                          
Hit:5 http://cdn-fastly.deb.debian.org/debian sid InRelease                                                   
Hit:9 http://us.archive.ubuntu.com/ubuntu xenial InRelease                      
Err:10 https://download.docker.com/linux/ubuntu buster Release                  
  404  Not Found [IP: 143.204.229.105 443]
Err:3 http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Err:8 http://us.archive.ubuntu.com/ubuntu bionic InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Err:9 http://us.archive.ubuntu.com/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Err:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'https://download.docker.com/linux/ubuntu buster Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://eu-west-3.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://us.archive.ubuntu.com/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://us.archive.ubuntu.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32

我无法使用 docker 安装:

sudo apt-get install docker-ce docker-ce-cli containerd.io

我应该怎么做才能阅读这些错误并恢复正常配置?

提前谢谢你。

【问题讨论】:

    标签: docker ubuntu-18.04 ddd-repositories apt-key


    【解决方案1】:

    我可以在https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/ 之后解决这个问题

    简单地说: 查看上面的错误,apt 告诉我们缺少以下键:3B4FE6ACC0B21F32。请注意,这些被多次列出。每个唯一键只需添加一次。

    为了添加这些键,我运行了以下命令:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
    

    【讨论】:

    • 为我工作。谢谢。
    • 你成就了我的一天
    【解决方案2】:

    我在关注 https://thecodecloud.in/solved-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/ 后解决了这个问题

    我在更新 ubuntu 存储库时检查了确切的错误。然后我使用了成功运行的以下命令,同时我们必须从错误中复制密钥并粘贴到下面的命令中。

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ????????????????
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-04
      • 2023-01-27
      • 2017-10-14
      • 1970-01-01
      • 2015-07-08
      • 1970-01-01
      相关资源
      最近更新 更多