运行“sudo apt-get update”命令时出现 GPG 错误

运行“sudo apt-get update”命令时出现 GPG 错误

使用 Ubuntu 14.04 LTS(64 位)。

$ sudo apt-get update   
.
.
.
Fetched 2,079 kB in 1min 1s (33.7 kB/s)                                        
Reading package lists... Done  
W: GPG error: http://public-repo-1.hortonworks.com HDP InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B9733A7A07513CAD  
W: GPG error: http://public-repo-1.hortonworks.com HDP-UTILS InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B9733A7A07513CAD

我该如何解决这个问题?

答案1

从 MIT 密钥服务器导入密钥:

gpg --keyserver pgp.mit.edu --recv-keys B9733A7A07513CAD
gpg -a --export 07513CAD | apt-key add -

相关内容