The following error message may be generated when installing Nginx from dotdeb.org:
W: GPG error: http://nginx.org squeeze Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62 |
The solution is to add the public key to apt-get
Example output:
root@shell:~# gpg --keyserver keyserver.ubuntu.com --recv-key ABF5BD827BD9BF62 gpg: requesting key 7BD9BF62 from hkp server keyserver.ubuntu.com gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 7BD9BF62: public key "nginx signing key <signing-key@nginx.com>" imported gpg: no ultimately trusted keys found gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) root@shell:~# gpg -a --export ABF5BD827BD9BF62 | apt-key add - OK |
Now just update apt-get:
apt-get update
时间: 2024-09-26 20:21:04