无法安装 APT Google Cloud 公共签名密钥和 Kubernetes APT 软件包仓库。

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

Unable to install APT Google Cloud public signing key and Kubernetes APT repository

问题

我正在按照官方Kubernetes文档的指示安装Kubernetes存储库,我运行以下命令:

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

但我遇到了500错误:

curl: (22) 请求的URL返回错误: 500

访问该URL或使用curl请求它会返回500错误:

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

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 500 (Internal Server Error)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>500.</b> <ins>That’s an error.</ins>
  <p>  <ins>That’s all we know.</ins>

目前Google是否有问题或者我漏掉了什么?

这是官方文档的URL(Debian发行版选项卡):
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

更新
也有一个GitHub问题已经打开,链接如下:
https://github.com/kubernetes/kubernetes/issues/116068

英文:

I am following the instructions on the official Kubernetes documentation to install Kubernetes repository, I run

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

but I get 500 error

curl: (22) The requested URL returned error: 500

Visiting the URL or curling it returns 500 Error

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

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 500 (Internal Server Error)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>500.</b> <ins>That’s an error.</ins>
  <p>  <ins>That’s all we know.</ins>

Is Google having issues at the moment or am I missing something?

This is the official documentation URL (Debian distribution tab)
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

UPDATE
There is a GitHub issue opened as well https://github.com/kubernetes/kubernetes/issues/116068

答案1

得分: 1

确实,似乎存在一个问题。文档仍建议使用URL。但我看到也有500错误。

检查Google状态页面(https://status.cloud.google.com/),可能存在与FileStore(非根用户的文件访问问题)有关的问题,影响了多个位置。


而且现在它正常运行。

英文:

Indeed, there seem to be an issue. Docs still suggests that URL should be used. Yet I see to 500 too.

Checking google status page ( https://status.cloud.google.com/ ), there could be an issue with FileStore (file access issues for non-root users). With a bunch of affected locations.


and right now it works.

答案2

得分: 0

你可以从互联网缓存中获取该密钥 - https://web.archive.org/web/20230223152417/https://packages.cloud.google.com/apt/doc/apt-key.gpg - 这对我来说刚刚起作用

因此,您的Kubectl安装步骤将变为:

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

You could grab that key from the Internet cache - https://web.archive.org/web/20230223152417/https://packages.cloud.google.com/apt/doc/apt-key.gpg - this worked for me just now

Thus your Kubectl installation step would become:

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

答案3

得分: -3

问题已被Kubernetes解决。解决方法是使用此URL https://dl.k8s.io/apt/doc/apt-key.gpg

英文:

Problem has been solved by kubernetes. The solution is to use this URL https://dl.k8s.io/apt/doc/apt-key.gpg

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

发表评论

匿名网友

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

确定