bazel: Ubuntu 16.04 PPA key expired

ATTENTION! Please read and follow:

  • if this is a question about how to build / test / query / deploy using Bazel, ask it on StackOverflow instead: https://stackoverflow.com/questions/tagged/bazel
  • if this is a discussion starter, send it to bazel-discuss@googlegroups.com
  • if this is a bug or feature request, fill the form below as best as you can.

Description of the problem / feature request:

It appears that the key for the Ubuntu 16.04 PPA has expired. Running sudo apt-get update produces the following:

Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://storage.googleapis.com/bazel-apt stable InRelease
Hit:5 http://ppa.launchpad.net/beineri/opt-qt562-xenial/ubuntu xenial InRelease
Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:7 https://apt.buildkite.com/buildkite-agent stable InRelease
Hit:8 https://apt.buildkite.com/buildkite-agent stable Release
Hit:9 http://ppa.launchpad.net/beineri/opt-qt563-xenial/ubuntu xenial InRelease
Err:4 http://storage.googleapis.com/bazel-apt stable InRelease
  The following signatures were invalid: KEYEXPIRED 1527185977  KEYEXPIRED 1527185977  KEYEXPIRED 1527185977
Hit:11 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Hit:12 https://packagecloud.io/github/git-lfs/ubuntu xenial InRelease
Hit:13 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
Hit:14 http://ppa.launchpad.net/mc3man/mpv-tests/ubuntu xenial InRelease
Hit:15 http://ppa.launchpad.net/paulo-miguel-dias/mesa/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
W: Some index files failed to download. They have been ignored, or old ones used instead.

The /etc/apt/sources.list.d/storage_googleapis_com_bazel_apt.list contains:

deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8

Feature requests: what underlying problem are you trying to solve with this feature?

Allow Ubuntu 16.04 users to continue to apt-get install the latest version of bazel.

Bugs: what’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Execute sudo apt-get update on a Ubuntu 16.04 machine with the http://storage.googleapis.com/bazel-apt PPA installed.

What operating system are you running Bazel on?

Ubuntu 16.04

What’s the output of bazel info release?

Starting local Bazel server and connecting to it...
.
release 0.13.0

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 17
  • Comments: 25 (12 by maintainers)

Most upvoted comments

I can confirm that reinstalling the key resolves the issue; sudo apt-get update runs successfully.

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

Thanks for the timely fix!

I can confirm that reinstalling the key resolves the issue; sudo apt-get update runs successfully.

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

Thanks for the timely fix!

I did not work in my case. I am still seeing the error. 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/tensorflow-serving-apt stable InRelease: The following signatures were invalid: EXPKEYSIG 544B7F63BF9E4D5F Tensorflow Serving Developer (Tensorflow Serving APT repository key) tensorflow-serving-dev@googlegroups.com W: Failed to fetch http://storage.googleapis.com/tensorflow-serving-apt/dists/stable/InRelease The following signatures were invalid: EXPKEYSIG 544B7F63BF9E4D5F Tensorflow Serving Developer (Tensorflow Serving APT repository key) tensorflow-serving-dev@googlegroups.com W: Some index files failed to download. They have been ignored, or old ones used instead.

Workaround from bazel-dev@googlegroups.com:

For anyone working around this, just use the gpg provided by

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 71A1D0EFCFEB6281FD0437C93D5919B448457EE0

it appears that’s been updated to last till 2020, while the one listed on https://docs.bazel.build/versions/master/install-ubuntu.html isn’t.

Cheers Paul

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bazel-dev/Llq6fetzgac/ngdC_QSrAAAJ

@tlc That looks like Tensorflow Serving’s key https://www.tensorflow.org/serving/setup#installing_using_apt and not Bazel’s?

On Fri, Nov 16, 2018 at 10:40 AM tlc notifications@github.com wrote:

I believe this is broken again.

$ sudo apt-get update Hit:1 http://storage.googleapis.com/bazel-apt stable 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/tensorflow-serving-apt stable InRelease: The following signatures were invalid: KEYEXPIRED 1531525724 KEYEXPIRED 1531525724 KEYEXPIRED 1531525724 W: Failed to fetch http://storage.googleapis.com/tensorflow-serving-apt/dists/stable/InRelease The following signatures were invalid: KEYEXPIRED 1531525724 KEYEXPIRED 1531525724 KEYEXPIRED 1531525724

$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4654 100 4654 0 0 11436 0 --:–:-- --:–:-- --:–:-- 11434

$ sudo apt-get update Hit:1 http://storage.googleapis.com/bazel-apt stable 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/tensorflow-serving-apt stable InRelease: The following signatures were invalid: KEYEXPIRED 1531525724 KEYEXPIRED 1531525724 KEYEXPIRED 1531525724 W: Failed to fetch http://storage.googleapis.com/tensorflow-serving-apt/dists/stable/InRelease The following signatures were invalid: KEYEXPIRED 1531525724 KEYEXPIRED 1531525724 KEYEXPIRED 1531525724 W: Some index files failed to download. They have been ignored, or old ones used instead.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bazelbuild/bazel/issues/5261#issuecomment-439432729, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVPDhER8CT6ZTnqFWOmofiOkbC1wwl7ks5uvtxogaJpZM4UM2Lf .

I believe this is broken again.

$ sudo apt-get update
Hit:1 http://storage.googleapis.com/bazel-apt stable 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/tensorflow-serving-apt stable InRelease: The following signatures were invalid: KEYEXPIRED 1531525724  KEYEXPIRED 1531525724  KEYEXPIRED 1531525724
W: Failed to fetch http://storage.googleapis.com/tensorflow-serving-apt/dists/stable/InRelease  The following signatures were invalid: KEYEXPIRED 1531525724  KEYEXPIRED 1531525724  KEYEXPIRED 1531525724
$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4654  100  4654    0     0  11436      0 --:--:-- --:--:-- --:--:-- 11434

$ sudo apt-get update
Hit:1 http://storage.googleapis.com/bazel-apt stable 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/tensorflow-serving-apt stable InRelease: The following signatures were invalid: KEYEXPIRED 1531525724  KEYEXPIRED 1531525724  KEYEXPIRED 1531525724
W: Failed to fetch http://storage.googleapis.com/tensorflow-serving-apt/dists/stable/InRelease  The following signatures were invalid: KEYEXPIRED 1531525724  KEYEXPIRED 1531525724  KEYEXPIRED 1531525724
W: Some index files failed to download. They have been ignored, or old ones used instead.

Just confirming that curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - fixes issue.

OS: Ubuntu 16.04 xenial Kernel: x86_64 Linux 4.13.0-45-generic Uptime: 11h 27m Packages: 3183 Shell: bash 4.3.48 Resolution: 2560x1080 DE: Unity 7.4.5 WM: Compiz WM Theme: Radiance Radiance [GTK2] , Radiance [GTK3] Icon Theme: ubuntu-mono-light Font: Ubuntu 11 CPU: AMD Ryzen 5 1600X Six-Core @ 4GHz GPU: GeForce GTX 1050 RAM: 5808MiB / 16034MiB

@ImJasonH sorry marked public. should work now

Can you also update https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg ? This was recommended in previous versions of the installation instructions and is breaking our CI (and presumably some others). We’ll update to the new instructions after this release.