【问题标题】:GPG error: http://packages.cloud.google.com/apt EXPKEYSIG 3746C208A7317B0F [closed]GPG 错误:http://packages.cloud.google.com/apt EXPKEYSIG 3746C208A7317B0F [关闭]
【发布时间】:2018-09-09 23:18:27
【问题描述】:

在 Debian 上运行 sudo apt update 时出现以下错误。

GPG error: http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease:
The following signatures were invalid: EXPKEYSIG 3746C208A7317B0F

【问题讨论】:

    标签: google-cloud-platform gcloud gcloud-cli


    【解决方案1】:

    这是一个已知问题。

    https://cloud.google.com/compute/docs/troubleshooting/known-issues#keyexpired

    运行以下命令获取最新密钥:

    wget https://packages.cloud.google.com/apt/doc/apt-key.gpg \
        && apt-key add apt-key.gpg
    

    curl -O https://packages.cloud.google.com/apt/doc/apt-key.gpg \
        && apt-key add apt-key.gpg
    

    或者.. 如果你喜欢没有多余文件的简单并且喜欢冒险:

    curl -f https://packages.cloud.google.com/apt/doc/apt-key.gpg \
        | sudo apt-key add -
    

    【讨论】:

    • 或者如果你不是root curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
    • 我在 Ubuntu18 中遇到了同样的问题,这并没有解决问题,它仍然在说 W: GPG error: https://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6A030B21BA07F4FB E: The repository 'https://packages.cloud.google.com/apt cloud-sdk 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. 知道这里发生了什么吗??
    • 这样做对错误信息没有影响。
    • wget https://packages.cloud.google.com/apt/doc/apt-key.gpg && apt-key add apt-key.gpg 某些内容可能会发生变化,导致curl 无法正常工作。
    • installation instructions 包括 curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -。额外的--keyring 参数似乎可以解决问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-14
    • 2022-10-23
    • 2020-08-30
    • 1970-01-01
    • 2011-01-21
    • 1970-01-01
    相关资源
    最近更新 更多