<p>I'm trying to install Kubernetes on my Ubuntu server/desktop version 18.04.1. 
But, when I want to add kubernetes to the apt repository using the following command:</p>

<pre><code>sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-bionic main"
</code></pre>

<p>I get the following error:</p>

<pre><code>Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                               
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                          
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                       
Hit:5 http://dl.google.com/linux/chrome/deb stable Release                                                                                            
Hit:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                     
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease                                                                                       
Ign:8 https://packages.cloud.google.com/apt kubernetes-bionic InRelease                              
Err:10 https://packages.cloud.google.com/apt kubernetes-bionic Release
  404  Not Found [IP: 216.58.211.110 443]
Reading package lists... Done
E: The repository 'http://apt.kubernetes.io kubernetes-bionic 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.
</code></pre>

<p>If I then try to install <code>kubeadm</code>, it does not work because I don't have the repository added to apt</p>

<p>I hope someone can shed some light on my issue..</p>

<p>All of this is running inside a VM on Hyper-V</p>

<p>PS: I'm not a die hard Linux expert but coming from Windows!</p>

Jordy van Eijk
<p>Bionic folder is still not yet created however I tested with adding repository with '
sudo apt-add-repository "deb <a href="http://apt.kubernetes.io/" rel="noreferrer">http://apt.kubernetes.io/</a> kubernetes-xenial main" and 
sudo apt-add-repository "deb <a href="http://apt.kubernetes.io/" rel="noreferrer">http://apt.kubernetes.io/</a> kubernetes-yakkety main"</p>

<p>I am able to install Kubeadm, Kubectl &amp; kubelet on Ubuntu 18.04 with codename *bionic**.... </p>

<p>Please make sure to add GPG key as it is recommended &amp; good practice to follow otherwise this creates vulnerability to push malicious code through proper package name... </p>

<pre><code>curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add
</code></pre>

<p>You can check by yourself what all repository are present on dists - <a href="https://packages.cloud.google.com/apt/dists/" rel="noreferrer">https://packages.cloud.google.com/apt/dists/</a> </p>

<p>You can also verify whether the repository has been added to /etc/apt/source.list or /etc/apt/source.list.d, if it is there then you should be fine....</p>
