Ubuntu之apt-get系列--解决The following signatures couldn‘t be verified because the public key is not avai

叁歲伎倆 2023-09-23 18:07 42阅读 0赞

原文网址 :Ubuntu之apt-get系列—解决The following signatures couldn‘t be verified because the public key is not avai_IT利刃出鞘的博客-CSDN博客

简介

本文介绍用Ubuntu的apt-get update命令时提示签名无法认证的问题。

问题描述

在Ubuntu下执行sudo apt-get update时出现了如下报错:

The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A7813D884I98HR43
Reading package lists… Done
W: GPG error: https://download.docker.com/linux/ubuntu bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A7813D884I98HR43
E: The repository ‘https://download.docker.com/linux/ubuntu bionic InRelease’ is not signed.
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.

原因分析

此服务器缺少这个公钥。

解决方案

将此公钥添加到本台服务器即可,命令如下(此命令大概要执行十几秒):

  1. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A7813D884I98HR43

发表评论

表情:
评论列表 (有 0 条评论,42人围观)

还没有评论,来说两句吧...

相关阅读