gpt4 book ai didi

ubuntu - 无法在 Ubuntu 20.04 上安装 bazel - EXPKEYSIG 无效

转载 作者:行者123 更新时间:2023-12-03 18:30:33 25 4
gpt4 key购买 nike

我按照 https://docs.bazel.build/versions/master/install-ubuntu.html#install-with-installer-ubuntu 上的说明进行操作

并尝试在 Ubuntu 上安装 bazel。

当我运行第 2 步时:sudo apt update && sudo apt install bazel
我得到:

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) <bazel-dev@googlegroups.com>
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) <bazel-dev@googlegroups.com>
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 key 已过期。
来自 https://github.com/bazelbuild/bazel/issues/11470#issuecomment-633205152 :

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

关于ubuntu - 无法在 Ubuntu 20.04 上安装 bazel - EXPKEYSIG 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61982500/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com