在使用sudo apt-get update更新Ubuntu 16.04时出现Bazel密钥过期错误。

17

当我执行以下命令时,出现以下错误:

命令:

sudo apt-get update

错误:

Err:10 http://storage.googleapis.com/bazel-apt stable InRelease
The following signatures were invalid: KEYEXPIRED 1527185977  KEYEXPIRED 1527185977  KEYEXPIRED 1527185977
Hit:12 https://download.docker.com/linux/ubuntu xenial InRelease
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://storage.googleapis.com/bazel-apt stable InRelease: The following signatures were invalid: KEYEXPIRED 1527185977  KEYEXPIRED 1527185977  KEYEXPIRED 1527185977
W: Failed to fetch http://storage.googleapis.com/bazel-apt/dists/stable/InRelease  The following signatures were invalid: KEYEXPIRED 1527185977  KEYEXPIRED 1527185977  KEYEXPIRED 1527185977

我该如何解决这个问题?


5
"KEYEXPIRED issues":可能需要获取新的密钥 https://docs.bazel.build/versions/master/install-ubuntu.html#install-on-ubuntu ... curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - - Knud Larsen
它并没有解决问题。@KnudLarsen - Manasvini Ganesh
好的,那么您可以禁用仓库 https://download.docker.com/linux/ubuntu ... 如果您想要最新版本 = docker-ce_18.03.1~ce-0~ubuntu_amd64.deb,请前往此处:https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/ - Knud Larsen
1个回答

33

提醒一下:我最初以为脚本停止了,但它正在等待sudo密码。 - Framester

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接