Ubuntu 16.04.3 更新 GPG 错误(公钥不可用)

Ubuntu 16.04.3 更新 GPG 错误(公钥不可用)

我正在使用 Ubuntu 16.04.3 LTS。我已经用了一年多了,每隔几个月更新一次,没有出现任何问题。今天我更新后,出现了这些奇怪的公钥错误。我不知道这是什么意思,也不知道该从何说起。

错误如下:

Err:9 http://dl.google.com/linux/chrome/deb stable Release.gpg                 
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
Fetched 308 kB in 1s (159 kB/s)                                                
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error:      http://dl.google.com/linux/chrome/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6494C6D6997C215E
W: Some index files failed to download. They have been ignored, or old ones used instead.

我已经尝试过在线研究,但发现解释非常令人困惑。请帮助我理解:

1)这些错误意味着什么。

2)如何修复它们。

答案1

导入新的存储库密钥:

    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

    sudo apt update

你现在可以走了。

答案2

存储库中的软件包使用加密密钥进行签名,以确保您下载的文件是由您认为的人(软件包维护者)创建的。这是为了防止攻击者破坏镜像并用恶意软件替换合法软件包并将其安装在一堆计算机上。

看来您已将 Google 的 Chrome 存储库添加到您的系统中。他们似乎在维护它方面遇到了很多问题,在我以前的工作中,人们经常遇到此错误,直到 Google 修复了镜像(然后它会再次损坏,等等)。一般来说,如果您只安装来自官方 Ubuntu 存储库的软件,您的系统会更稳定。尤其是考虑到 Google 在维护其镜像方面似乎很差,我强烈建议:

  1. 正在卸载 Chrome。
  2. 删除该存储库。
  3. 安装chromium 浏览器,这是 Google Chrome 所基于的开源代码库。只有一些差异

相关内容