我正在尝试在我的Ubuntu服务器/桌面版本18.04.1上安装Kubernetes。但是,当我想使用以下命令将kubernetes添加到apt存储库时:
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-bionic main"我得到以下错误:
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://dl.google.com/linux/chrome/deb stable Release
Hit:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease
Ign:8 https://packages.cloud.google.com/apt kubernetes-bionic InRelease
Err:10 https://packages.cloud.google.com/apt kubernetes-bionic Release
404 Not Found [IP: 216.58.211.110 443]
Reading package lists... Done
E: The repository 'http://apt.kubernetes.io kubernetes-bionic Release' does not have a Release file.
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.如果我随后尝试安装kubeadm,它不能工作,因为我没有将存储库添加到apt
我希望有人能对我的问题有所了解。
所有这些都在Hyper-V上的虚拟机中运行
附注:我不是一个顽固的Linux专家,但来自Windows!
发布于 2018-11-11 16:47:40
目前(11月2018)没有仿生文件夹。您可以在此处查看受支持的发行版:
https://packages.cloud.google.com/apt/dists
kubernetes的最后一个版本是: kubernetes-yakkety
这应该仍然适用于仿生学。
发布于 2019-03-03 17:07:39
仿生文件夹仍然没有创建,但是我用‘sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main“和sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-yakkety main”添加存储库进行了测试
我可以在Ubuntu 18.04上安装Kubeadm,Kubectl & kubelet,代号为*bionic**...
请确保添加GPG密钥,因为这是建议和良好的做法,否则这将产生漏洞,通过正确的包名称推送恶意代码...
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add您可以自己检查dists - https://packages.cloud.google.com/apt/dists/上的所有存储库
您还可以验证存储库是否已添加到/etc/apt/soure.list或/etc/apt/soure.list.d,如果它在那里,则应该没问题……
https://stackoverflow.com/questions/53068337
复制相似问题