Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" Unable to locate package kubelet/kubeadm/kubectl" #18

Open
emresaracoglu opened this issue Sep 7, 2024 · 0 comments
Open

" Unable to locate package kubelet/kubeadm/kubectl" #18

emresaracoglu opened this issue Sep 7, 2024 · 0 comments

Comments

@emresaracoglu
Copy link

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.

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:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant