在下载 Google Cloud 的公共签名密钥时出现 500 错误:

huangapple go评论66阅读模式
英文:

Getting 500 while Download the Google Cloud public signing key:

问题

以下是您要翻译的内容:

  1. "Download the Google Cloud public signing key" 可以翻译为 "下载 Google Cloud 的公共签名密钥"。
  2. "sudo curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg" 这句命令不需要翻译。
  3. "when running the above command in ubuntu 22.04, returns 500" 可以翻译为 "在 Ubuntu 22.04 上运行上述命令时,返回 500 错误"。
  4. "when i try in browser also it is 500.. what is the alternate for this?" 可以翻译为 "在浏览器中尝试时也返回 500 错误,有什么替代方法吗?"。
  5. "https://packages.cloud.google.com/apt/doc/apt-key.gpg" 这个链接不需要翻译。
  6. "As per this blog, https://github.com/GoogleCloudPlatform/gcsfuse/issues/961" 可以翻译为 "根据这篇博客,https://github.com/GoogleCloudPlatform/gcsfuse/issues/961"。
  7. "I have added this" 可以翻译为 "我已添加了以下内容"。
  8. "but still getting the same error" 可以翻译为 "但仍然出现相同的错误"。
  9. 下面的命令和错误信息可以不翻译,直接保留原文即可。
英文:

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

As per this documentation,

Download the Google Cloud public signing key:

sudo curl -fsSLo /etc/apt/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg

when running the above command in ubuntu 22.04, returns 500

在下载 Google Cloud 的公共签名密钥时出现 500 错误:

when i try in browser also it is 500.. what is the alternate for this?

https://packages.cloud.google.com/apt/doc/apt-key.gpg

As per this blog, https://github.com/GoogleCloudPlatform/gcsfuse/issues/961

I have added this

echo xsBNBGKItdQBCADWmKTNZEYWgXy73FvKFY5fRro4tGNa4Be4TZW3wZpct9Cj8EjykU7S9EPoJ3EdKpxFltHRu7QbDi6LWSNA4XxwnudQrYGxnxx6Ru1KBHFxHhLfWsvFcGMwit/znpxtIt9UzqCm2YTEW5NUnzQ4rXYqVQK2FLG4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k/dFj71bU/UTXrkEkZZzE9JzUgan/ttyRrV6QbFZABByf4pYjBj+yLKw3280//JWurKox2uzEq1hdXPedRHICRuh1Fjd00otaQ+wGF3kY74zlWivB6Wp6tnL9STQ1oVYBUv7HhSHoJ5shELyedxxHxurUgFAD+pbFXIiK8cnAHfXTJMcrmPpC+YWEC/DeqIyEcNPkzRhtRSuERXcq1n+KJvMUAKMD/tezwvujzBaaSWapmdnGmtRjjL7IxUeGamVWOwLQbUr+34MwzdeJdcL8fav5LA8Uk0ulyeXdwiAK8FKQsixI+xZvz7HUs8ln4pZwGw/TpvO9cMkHogtgzQ== | base64 -d > apt-key.gpg

but still getting the same error

changan@Master:~$ sudo apt-get update
[sudo] password for changan:
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:1 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [8,993 B]
Err:1 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
Reading package lists... Done
W: GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
E: The repository 'https://apt.kubernetes.io kubernetes-xenial 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.

答案1

得分: 0

由于此网址 https://packages.cloud.google.com/apt/doc/apt-key.gpg,您正在收到HTTP代码500错误。

以下是解决方法

运行以下命令:

https://github.com/GoogleCloudPlatform/gcsfuse/issues/961#issuecomment-1445711531

echo xsBNBGKItdQBCADWmKTNZEYWgXy73FvKFY5fRro4tGNa4Be4TZW3wZpct9Cj8EjykU7S9EPoJ3EdKpxFltHRu7QbDi6LWSNA4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rcBeEznkYh1C4kzdP1ORm5upnknABEBAAHCwF8EGAEIABMFAmKItdQJELU9yA0T7e8FAhsMAABJmAgAhRPk/dFj71bU/UTXrkEkZZzE9JzUgan/ttyRrV6QbFZABByf4pYjBj+yLKw3280//JWurKox2uzEq1hdXPedRHICRuh1Fjd00otaQ+wGF3kY74zlWivB6Wp6tnL9STQ1oVYBUv7HhSHoJ5shELyedxxHxurUgFAD+pbFXIiK8cnAHfXTJMcrmPpC+YWEC/DeqIyEcNPkzRhtRSuERXcq1n+KJvMUAKMD/tezwvujzBaaSWapmdnGmtRjjL7IxUeGamVWOwLQbUr+34MwzdeJdcL8fav5LA8Uk0ulyeXdwiAK8FKQsixI+xZvz7HUs8ln4pZwGw/TpvO9cMkHogtgzQ== | base64 -d | sudo apt-key add -

如果在添加存储库时指定了`signed-by`路径,就像[此示例](https://cloud.google.com/sdk/docs/install#deb)一样,他们需要修改解决方法,指定正确的密钥文件路径。

运行以下命令将显示路径:

```bash
grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep "packages.cloud.google.com/apt"

例如,如果您指定了路径/usr/share/keyrings/cloud.google.gpg,则需要将解决方法管道的最后一部分替换为sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

您可以使用以下链接将问题报告给Google:公共问题跟踪器

英文:

You are geeting HTTP code 500 error because of this url https://packages.cloud.google.com/apt/doc/apt-key.gpg

Below is the workaround

Run the below command:

https://github.com/GoogleCloudPlatform/gcsfuse/issues/961#issuecomment-1445711531

echo xsBNBGKItdQBCADWmKTNZEYWgXy73FvKFY5fRro4tGNa4Be4TZW3wZpct9Cj8EjykU7S9EPoJ3EdKpxFltHRu7QbDi6LWSNA4XxwnudQrYGxnxx6Ru1KBHFxHhLfWsvFcGMwit/znpxtIt9UzqCm2YTEW5NUnzQ4rXYqVQK2FLG4weYJ5bKwkY+ZsnRJpzxdHGJ0pBiqwkMT8bfQdJymUBown+SeuQ2HEqfjVMsIRe0dweD2PHWeWo9fTXsz1Q5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otaQ+wGF3kY74zlWivB6Wp6tnL9STQ1oVYBUv7HhSHoJ5shELyedxxHxurUgFAD+pbFXIiK8cnAHfXTJMcrmPpC+YWEC/DeqIyEcNPkzRhtRSuERXcq1n+KJvMUAKMD/tezwvujzBaaSWapmdnGmtRjjL7IxUeGamVWOwLQbUr+34MwzdeJdcL8fav5LA8Uk0ulyeXdwiAK8FKQsixI+xZvz7HUs8ln4pZwGw/TpvO9cMkHogtgzQ== | base64 -d | sudo apt-key add -

If you specified a signed-by path when they added the repo like this example, they need to modify the workaround specifying the correct keyfile path.

Running the below command will reveal the path,

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep "packages.cloud.google.com/apt"

For example, if you specified the path to /usr/share/keyrings/cloud.google.gpg, then need to replace the last part of the workaround pipeline with sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

You can report the issue to google by using the link Public Issue Tracker.

huangapple
  • 本文由 发表于 2023年2月27日 17:43:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/75578847.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定