apt – Stuck on nginx 1.2x.x installation with NO_PUBKEY ABF5BD827BD9BF62
I have a new ubuntu 22.04 server, and trying to install 1.27.0/latest nginx.
Imported keys from here
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
Also tried
http://nginx.org/packages/keys/nginx_signing.key
and I have /etc/apt/sources.list.d/nginx.list as follows
deb [arch=x86_64 signed-by=/usr/share/keyrings/nginx_signing.gpg] http://nginx.org/packages/ubuntu jammy nginx
Tried above with or without arch=x86_64
When I do apt update
Always getting following error
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
Read more here: Source link
