为什么NGINX签名无法验证?由于公钥不可用,无法验证以下签名

问题描述 投票:0回答:1

我试过了

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

出现错误

W: GPG error: http://nginx.org/packages/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62

我添加了 pub key 仍然一样

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

也没有帮助

wget https://nginx.org/keys/nginx_signing.key -O - | sudo apt-key add -
--2022-05-10 08:02:28--  https://nginx.org/keys/nginx_signing.key
Resolving nginx.org (nginx.org)... 52.58.199.22, 3.125.197.172, 2a05:d014:edb:5702::6, ...
Connecting to nginx.org (nginx.org)|52.58.199.22|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1561 (1.5K) [application/octet-stream]
Saving to: ‘STDOUT’

为什么?

linux ubuntu gpg-signature
1个回答
0
投票

你可以试试这个:

curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb

我遇到了同样的问题,这些命令解决了这个问题......

© www.soinside.com 2019 - 2024. All rights reserved.