The Ubuntu PPA key has expired which is causing installation of Bazel to fail.
Trying to install Bazel on Ubuntu using the instructions here: https://docs.bazel.build/versions/master/install-ubuntu.html
docker run --rm -it ubuntu:18.04 bash
apt-get update && apt-get install -y gnupg curl
curl https://bazel.build/bazel-release.pub.gpg | gpg -v
exit
Outputs:
gpg: Note: signature key 3D5919B448457EE0 expired Sat May 23 13:10:53 2020 UTC
pub rsa4096 2016-05-24 [SC] [expired: 2020-05-23]
71A1D0EFCFEB6281FD0437C93D5919B448457EE0
uid Bazel Developer (Bazel APT repository key) <[email protected]>
sig DD3EF963991F1EC2 2016-10-28 [User ID not found]
sig 3D5919B448457EE0 2018-05-24 [selfsig]
sig 3D5919B448457EE0 2016-05-24 [selfsig]
sub rsa4096 2016-05-24 [E] [expired: 2020-05-23]
sig 3D5919B448457EE0 2018-05-24 [keybind]
Ubuntu 18.04
bazel info release
?N/A
Related issue the last time this happened: https://github.com/bazelbuild/bazel/issues/5261
Sorry 馃槵 I'm currently fixing this, will ping here when the new keys have been uploaded.
I think I did everything that's required to fix this:
Please note that it can take ~1 hour for bazel.build to give the new key due to the time it requires to build the website and for caches to expire.
You may have to manually update your apt keyring with the new key:
$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
$ sudo apt-get update
You may have to manually update your apt keyring with the new key:
$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - $ sudo apt-get update
This works for me now (Earlier this week, these same commands did nothing for me).
You may have to manually update your apt keyring with the new key:
$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add - $ sudo apt-get update
Fix tested and it worked for me.
Most helpful comment
You may have to manually update your apt keyring with the new key: