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 in Kubernetes by Greg
330 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 by Jarvis

Related Questions In Kubernetes

0 votes
1 answer
0 votes
1 answer

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

Make sure you've followed these steps accurarely, ...READ MORE

answered Dec 18, 2018 in Kubernetes by Charlie
908 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
3,346 views
+3 votes
1 answer
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 in Kubernetes by Janice
112 views
0 votes
1 answer

Error while installing Kubernetes using snap

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

answered Aug 6 in Kubernetes by Harshit
48 views