I'm getting an error during installation, I've tried many times with different methods in a new virtual machine but I can't solve this problem. Am I missing something?
Thank you.
I tried it on both version 20 and 22 of Ubuntu with the same result.
root@ubuntu-4gb-nbg1-4:~# echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://apt.kubernetes.io/ kubernetes-xenial main
root@ubuntu-4gb-nbg1-4:~#
root@ubuntu-4gb-nbg1-4:~# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
OK
root@ubuntu-4gb-nbg1-4:~#
root@ubuntu-4gb-nbg1-4:~# sudo apt-get update
Hit:1 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.25/xUbuntu_20.04 InRelease
Hit:2 https://mirror.hetzner.com/ubuntu/packages focal InRelease
Hit:3 https://mirror.hetzner.com/ubuntu/packages focal-updates InRelease
Hit:4 https://mirror.hetzner.com/ubuntu/packages focal-backports InRelease
Hit:5 https://mirror.hetzner.com/ubuntu/security focal-security InRelease
Hit:6 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 InRelease
0% [Waiting for headers]
Ign:7 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Err:8 https://packages.cloud.google.com/apt kubernetes-xenial Release
404 Not Found [IP: 2a00:1450:4001:82a::200e 443]
Reading package lists... Done
E: The repository 'https://apt.kubernetes.io kubernetes-xenial 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.
root@ubuntu-4gb-nbg1-4:~#
root@ubuntu-4gb-nbg1-4:~# sudo apt-get install -y kubelet kubeadm kubectl
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
E: Unable to locate package kubelet
E: Unable to locate package kubeadm
E: Unable to locate package kubectl
root@ubuntu-4gb-nbg1-4:~#
Hello,
I'm getting an error during installation, I've tried many times with different methods in a new virtual machine but I can't solve this problem. Am I missing something?
Thank you.
I tried it on both version 20 and 22 of Ubuntu with the same result.