Work around 1 : log in as root user sudo su –
-curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - apt-get update
Apt-get install –y
Workaround 2:
Edit /etc/apt/sources.list.d/kubernetes.list or /etc/apt/sources.list ( depends on ubuntu version)
add
deb http://apt.kubernetes.io/ kubernetes-xenial main at the end of the list of repositories
then run below commands, it works!..
apt-get update
apt-get install -y kubelet kubeadm kubectl