<p>I am doing an apt-get update  for installing Kubernetes and I get this message
<a href="https://packages.cloud.google.com/apt" rel="nofollow noreferrer">https://packages.cloud.google.com/apt</a> kubernetes-xenial Release
Could not handshake: The TLS connection was non-properly terminated.</p>
<p>and ofcourse later in the process; &quot;&quot;The repository 'http://apt.kubernetes.io kubernetes-xenial Release' does not have a Release file&quot;</p>
<p>I have the proxies set correctly:</p>
<p>1  in <strong>etc-apt-apt.conf.d -proxy.conf</strong>
<em>Acquire::ForceIPv4 &quot;true&quot;;
and proxies are set for https_proxy; http_proxy and ftp_proxy</em></p>
<ol start="2">
<li>and in **</li>
</ol>
<blockquote>
<p><strong>etc conf I have disabled ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1</strong></p>
</blockquote>
<p>**</p>
<p>Can someone please help me understand what other proxies etc are missing to avoid the TLS error.</p>

kapa3
<p>Solved the issue:
This was an issue due to be being behind a firewall
The apt-key before the apt-get update instruction was the issue</p>
<p>By rerunning the apt-key using
<strong>&quot;curl -sSL <br />
'http://keyserver.ubuntu.com/pks/lookup?op=get&amp;search=0xBBEBDCB318AD50EC6865090613B00F1FD2C19886' <br />
| sudo apt-key add - &quot;</strong></p>
<p>instead of the original instruction
<strong>curl -s <a href="https://packages.cloud.google.com/apt/doc/apt-key.gpg" rel="nofollow noreferrer">https://packages.cloud.google.com/apt/doc/apt-key.gpg</a> | sudo apt-key add -</strong></p>
<p>Full set of instructions</p>
<ol>
<li>sudo apt-get update</li>
<li>sudo apt-get install docker.io</li>
<li>sudo apt-get update &amp;&amp; sudo apt-get install -y apt-transport-https curl</li>
<li><em><strong>curl -s <a href="https://packages.cloud.google.com/apt/doc/apt-key.gpg" rel="nofollow noreferrer">https://packages.cloud.google.com/apt/doc/apt-key.gpg</a> | sudo apt-key add –</strong></em></li>
<li>cat &lt;&lt;EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list</li>
<li>deb <a href="https://apt.kubernetes.io/" rel="nofollow noreferrer">https://apt.kubernetes.io/</a> kubernetes-xenial main</li>
<li>EOF</li>
<li>sudo apt-get update:</li>
</ol>
