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
10,565 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
10,752 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
15,578 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,063 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
3,106 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
3,028 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