我正在按照以下说明进行操作https://docs.bazel.build/versions/master/install-ubuntu.html#install-with-installer-ubuntu https://docs.bazel.build/versions/master/install-ubuntu.html#install-with-installer-ubuntu
并尝试在 Ubuntu 上安装 bazel。
当我运行步骤 2 时:sudo apt update && sudo apt install bazel
I get:
Get:1 https://storage.googleapis.com/bazel-apt stable InRelease [2,256 B]
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Err:1 https://storage.googleapis.com/bazel-apt stable InRelease
The following signatures were invalid: EXPKEYSIG 3D5919B448457EE0 Bazel Developer (Bazel APT repository key) <[email protected] /cdn-cgi/l/email-protection>
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
W: GPG error: https://storage.googleapis.com/bazel-apt stable InRelease: The following signatures were invalid: EXPKEYSIG 3D5919B448457EE0 Bazel Developer (Bazel APT repository key) <[email protected] /cdn-cgi/l/email-protection>
E: The repository 'https://storage.googleapis.com/bazel-apt stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
有人知道怎么修这个东西吗?
Bazel Ubuntu PPA 密钥已过期。
From https://github.com/bazelbuild/bazel/issues/11470#issuecomment-633205152 https://github.com/bazelbuild/bazel/issues/11470#issuecomment-633205152:
您可能需要使用新密钥手动更新 apt 密钥环:
$ curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
$ sudo apt-get update
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)