首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GPG错误NO_PUBKEY :警告:以下软件包无法进行身份验证!

GPG错误NO_PUBKEY :警告:以下软件包无法进行身份验证!
EN

Ask Ubuntu用户
提问于 2014-09-06 13:36:33
回答 1查看 62.1K关注 0票数 24

我只是盯着看一些关于GPG键的奇怪错误。也就是说,我刚刚添加了ppa:ubuntu-toolchain-r/test并想要更新,之后我得到了以下内容:

代码语言:javascript
复制
W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: GPG error: http://archive.canonical.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://qgis.org trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 030561BEDD45F6C3
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com trusty-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://archive.ubuntu.com trusty-security Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

我尝试用两种方式解决这个问题(提供这里)

代码语言:javascript
复制
for key in 40976EAF437D05B5 3B4FE6ACC0B21F32 A040830F7FAC5991 030561BEDD45F6C3 16126D3A3E5C1192  ; do sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key ; done

但是,这并没有帮助(同样的错误以相同的键出现),所以我尝试这样做:

代码语言:javascript
复制
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install y-ppa-manager

但我得到的这个让我睁开了眼睛:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  launchpad-getkeys libvte-common libvte9 python-keyring python-launchpadlib
  python-lazr.restfulclient python-lazr.uri python-oauth python-secretstorage
  python-simplejson python-vte python-wadllib xclip yad
Suggested packages:
  python-gdata python-keyczar python-kde4 python-testresources
  python-secretstorage-doc
The following NEW packages will be installed:
  launchpad-getkeys libvte-common libvte9 python-keyring python-launchpadlib
  python-lazr.restfulclient python-lazr.uri python-oauth python-secretstorage
  python-simplejson python-vte python-wadllib xclip y-ppa-manager yad
0 upgraded, 15 newly installed, 0 to remove and 29 not upgraded.
Need to get 915 kB of archives.
After this operation, 4,515 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
  libvte-common libvte9 python-keyring python-lazr.uri python-simplejson
  python-wadllib python-oauth python-lazr.restfulclient python-launchpadlib
  python-secretstorage python-vte xclip
Install these packages without verification? [y/N]
EN

回答 1

Ask Ubuntu用户

发布于 2014-09-06 13:51:27

运行命令:

代码语言:javascript
复制
sudo apt-get update

对于报告为缺失的每16个字符的键,请运行以下替换键:

代码语言:javascript
复制
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABCDEFGH12345678
票数 59
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/520828

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档