Server 500错误 – https://packages.cloud.google.com/apt/doc/apt-key.gpg

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

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

问题

我正在尝试通过我的 CircleCI 工作流程安装 kubectl。这是现有的代码,没有任何更改,但在尝试从 Google 获取 apt-key.gpg 时,它返回服务器 500 错误。这种情况在使用 curl、wget 或直接在浏览器中访问时都会发生。

wget https://packages.cloud.google.com/apt/doc/apt-key.gpg
--2023-02-26 13:40:10--  https://packages.cloud.google.com/apt/doc/apt-key.gpg
Resolving packages.cloud.google.com (packages.cloud.google.com)... 142.251.45.238
Connecting to packages.cloud.google.com (packages.cloud.google.com)|142.251.45.238|:443... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2023-02-26 13:40:10 ERROR 500: Internal Server Error.

有人知道如何解决这个问题吗?谢谢!

我已经尝试过在我的 VPC 内部、公共互联网等多种方式,包括使用 wget、curl 等。

英文:

I'm trying to install kubectl through my circleci workflow. This is existing code, and nothing has changed, but when trying to get the apt-key.gpg from Google, it gives me a server 500. This happens with curl, wget, and going directly in a browser.

wget https://packages.cloud.google.com/apt/doc/apt-key.gpg
--2023-02-26 13:40:10--  https://packages.cloud.google.com/apt/doc/apt-key.gpg
Resolving packages.cloud.google.com (packages.cloud.google.com)... 142.251.45.238
Connecting to packages.cloud.google.com (packages.cloud.google.com)|142.251.45.238|:443... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2023-02-26 13:40:10 ERROR 500: Internal Server Error.

Anyone have a way of getting past this? Thanks!

I've tried from within my vpc, public internet, etc, etc. wget, curl, etc

答案1

得分: 1

GitHub问题讨论建议改用 https://dl.k8s.io/apt/doc/apt-key.gpg

英文:

The discussion at the GitHub issue suggests using https://dl.k8s.io/apt/doc/apt-key.gpg instead.

答案2

得分: 0

这个解决方案对我有效:

  • 通过 https://web.archive.org/web/20230223152417if_/https://packages.cloud.google.com/apt/doc/apt-key.gpg 获取 apt-key.gpg。
英文:

This solution worked for me :

  • get the apt-key.gpg through https://web.archive.org/web/20230223152417if_/https://packages.cloud.google.com/apt/doc/apt-key.gpg

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

发表评论

匿名网友

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

确定