在运行
有人知道我该怎么解决吗?
sudo apt update
时,会出现以下警告,然后是一个错误。W: GPG error: http://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
E: The repository 'http://packages.cloud.google.com/apt cloud-sdk InRelease' is not signed.
有人知道我该怎么解决吗?
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
。这将下载一个 GPG 密钥,并将其添加到适用的软件包管理器中。 - tobltobsW: 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.
有任何想法吗? - cross_handlecurl
无法工作。 - Yan QiDongcurl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
。额外的--keyring
参数似乎起到了作用。 - falsePockets