其他分享
首页 > 其他分享> > apt-get update 无法验证签名报错处理

apt-get update 无法验证签名报错处理

作者:互联网

报错信息

报错图片

获取:1 https://apt.releases.hashicorp.com focal InRelease [9,495 B]            
错误:1 https://apt.releases.hashicorp.com focal InRelease                      
  由于没有公钥,无法验证下列签名: NO_PUBKEY DA418C88A3219F7B
命中:2 http://security.ubuntu.com/ubuntu focal-security InRelease              
命中:3 http://us.archive.ubuntu.com/ubuntu focal InRelease                     
命中:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease  
命中:5 https://dl.google.com/linux/chrome/deb stable InRelease      
命中:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
正在读取软件包列表... 完成
W: GPG 错误:https://apt.releases.hashicorp.com focal InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY DA418C88A3219F7B
E: 仓库 “https://apt.releases.hashicorp.com focal InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。

解决办法

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DA418C88A3219F7B
# 后面的key和报错信息上的一致

标签:InRelease,get,update,apt,报错,https,ubuntu,com,focal
来源: https://blog.csdn.net/leoyajun/article/details/122289557