Error saying No apt package kubeadm but there is a snap with that name Try snap install kubeadm

0 votes

I am trying to install kubernetes on Ubuntu 18.04. I executed the following command:

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo 'deb http://apt.kubernetes.io/ kubernetes-xenial main' | tee /etc/apt/sources.list.d/kubernetes.list
apt-get install kubelet kubeadm kubectl -y

I get the following error:

No apt package "kubeadm", but there is a snap with that name. Try "snap install kubeadm"
Aug 6, 2019 in Kubernetes by Greg
9,379 views

1 answer to this question.

0 votes
You're getting this error because you do not have the required repository for installing kubernetes. Executing these two commands should ideally add repositories to your stack but I dont think thats worked out very well.

sudo nano /etc/apt/sources.list

add the repo here

sudo nano /etc/apt/sources.list.d/kubernetes.list
answered Aug 6, 2019 by Jarvis
No.

Actually you need to add:

"sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"

Related Questions In Kubernetes

0 votes
1 answer
0 votes
2 answers

" apt-get install -y kubelet kubeadm kubectl" giving error

apt-get install -y kubelet kubeadm kubectl kubernetes-cni READ MORE

answered Sep 11, 2020 in Kubernetes by anonymous
9,667 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
14,494 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 5,956 views
0 votes
1 answer

Error "Target packages is configures multiple times in /etc/apt/sources.list:60 "

Check your /etc/spt/sources.list and /etc/apt/sources.d/kubernetes.list. You might have ...READ MORE

answered Aug 6, 2019 in Kubernetes by Janice
2,819 views
0 votes
1 answer

Error while installing Kubernetes using snap

Don't install using snap. It throws a ...READ MORE

answered Aug 6, 2019 in Kubernetes by Harshit
2,518 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP