更新Ubuntu / Debian软件包时出现GPG错误

时间:2014-03-09 03:26:55

标签: linux ubuntu

我正在尝试更新我的Ubuntu / Debian系统,但我收到错误:

GPG error: http://deb.opera.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E585066A30C18A2B

这是什么意思,我该如何解决?

3 个答案:

答案 0 :(得分:2)

尝试以下方法,来自there

  

错误NO_PUBKEY E585066A30C18A2B是Opera网站的关键   浏览器。要更正错误,请运行以下代码。

     

wget -O - http://deb.opera.com/archive.key | apt-key add -

答案 1 :(得分:0)

sudo wget -O - http://deb.opera.com/archive.key | apt-key add
--2016-09-24 09:42:48--  http://deb.opera.com/archive.key
Resolving deb.opera.com (deb.opera.com)... 185.26.183.130
Connecting to deb.opera.com (deb.opera.com)|185.26.183.130|:80...     connected.
HTTP request sent, awaiting response... ERROR: This command can only be     used by root.
200 OK
Length: 3152 (3,1K) [application/pgp-keys]
Saving to: ‘STDOUT’

-                     0%[                    ]       0  --.-KB/s    in 0s      


Cannot write to ‘-’ (Broken pipe).

答案 2 :(得分:0)

较新版本的apt也支持

apt-key adv --fetch-keys https://deb.opera.com/archive.key

而不是

wget -qO - https://deb.opera.com/archive.key | apt-key add -

此外,加载密钥时,您应始终使用 https