在更新 Google Chrome 和地球存储库时该如何处理 KEYEXPIRED 1555048520?

在更新 Google Chrome 和地球存储库时该如何处理 KEYEXPIRED 1555048520?

当我sudo apt-get update在完全更新的 Ubuntu 16.04.6 LTS 上运行时,我收到有关 Google 存储库的以下错误:

$ sudo apt update
...
Err:20 http://dl.google.com/linux/earth/deb stable Release.gpg
  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520
Get:21 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Err:13 http://dl.google.com/linux/chrome/deb stable Release.gpg 
  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520
...
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/earth/deb stable Release: The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520
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 were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520
W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release.gpg  The following signatures were invalid: KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520  KEYEXPIRED 1555048520
W: Some index files failed to download. They have been ignored, or old ones used instead.

回报apt-key list

pub   1024D/7FAC5991 2007-03-08
uid                  Google, Inc. Linux Package Signing Key <[email protected]>
sub   2048g/C07CB649 2007-03-08

pub   4096R/D38B4796 2016-04-12
uid                  Google Inc. (Linux Packages Signing Authority) <[email protected]>
sub   4096R/997C215E 2017-01-24 [expires: 2020-01-24]

使用以下方法删除 Google 密钥和软件包

sudo apt-key del D38B4796
sudo apt-key del 7FAC5991
sudo apt purge google-chrome-stable 
sudo apt purge google-earth-pro-stable
sudo apt purge google-earth-stable

并重新安装软件包

cd ~/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get install --reinstall ./google-chrome-stable_current_amd64.deb

wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb
sudo apt-get install --reinstall ./google-earth-pro-stable_current_amd64.deb

没有帮助。

正在执行命令https://www.google.com/linuxrepositories/

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

没有帮助。

我该如何修复它?

我还做了什么:
1. 通过 Google Chrome 发送反馈帮助 → 报告问题.
2. 使用 Google Earth 发送反馈帮助 → 发送反馈.
3. 创建线程Google Chrome 帮助

答案1

现在 Google 已经修复了该问题,因此您可以通过 apt 正常更新,无需其他解决方法。

(抱歉,由于声誉低于 50,因此无法发表评论。)

答案2

Ubuntu 16.04 LTS 的当前状态:

  • Google Chrome 存储库更新成功。
  • Google Earth 存储库更新成功。

如果仍然有问题 - 请删除 GPG 密钥,然后使用以下命令重新将 GPG 密钥添加到系统中

sudo apt-key del D38B4796
sudo apt-key del 7FAC5991
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

或者

sudo apt-key net-update
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D38B4796
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7FAC5991
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1397BC53640DB551

并更新软件包列表:

sudo apt-get update

答案3

我还必须删除chrome 远程桌面

sudo apt purge chrome-remote-desktop

以避免更新运行时出现残留投诉。

答案4

就到此为止...升级 Azure DSVM 时也会出现类似错误。接下来将更新密钥

curl https://storage.googleapis.com/tensorflow-serving-apt/tensorflow-serving.release.pub.gpg | sudo apt-key add -
sudo apt update

相关内容