nginx pgp error

When trying to install nginx in debian, you may encounter this error:

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 this:

gpg --keyserver keyserver.ubuntu.com --recv-key ABF5BD827BD9BF62
gpg -a --export ABF5BD827BD9BF62 | apt-key add -

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

Then type:

apt-get update

Nginx Wiki:

http://wiki.nginx.org/Install

 

引用自:http://minimalite.com/2012/03/linux/gpg-error-httpnginx-org-squeeze-release-the-following-signatures-couldn/

posted @ 2012-05-15 13:02  kamechen  阅读(683)  评论(0编辑  收藏  举报