我正在尝试在我的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上的VM内部运行
PS:我不是一个顽固的Linux专家,而是来自Windows!
1 回答
目前(新的2018年)没有仿生文件夹 . 您可以在此处查看支持的分发版:
https://packages.cloud.google.com/apt/dists
最后一个kubernetes版本是:kubernetes-yakkety
这应该仍然适用于仿生 .