17

I am getting the following error when I do

Command:

sudo apt-get update

Error:

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

How do I resolve it?

melpomene
  • 84,125
  • 8
  • 85
  • 148
Manasvini Ganesh
  • 483
  • 5
  • 16
  • 5
    "KEYEXPIRED issues" : Probably get a new key 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 May 28 '18 at 11:10
  • it doesn't resolve the issue. @KnudLarsen – Manasvini Ganesh May 29 '18 at 09:27
  • OK, then you can disable the repo, https://download.docker.com/linux/ubuntu ... If you want the latest = `docker-ce_18.03.1~ce-0~ubuntu_amd64.deb `, it's here : https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/ – Knud Larsen May 29 '18 at 11:20

1 Answers1

33
$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
# Followed by
$ sudo apt-get update

(via https://github.com/bazelbuild/bazel/issues/5261#issuecomment-392044252)

Jin
  • 12,748
  • 3
  • 36
  • 41