<p>kubectl version
/home/lenovo/.local/bin/kubectl: line 1: syntax error near unexpected token <code>&lt;' /home/lenovo/.local/bin/kubectl: line 1: </code><Code>NoSuchKey</Code>The specified key does not exist.No such object: kubernetes-release/release//bin/linux/amd64/kubectl'</p>

Noob
<p>I cleared kubectl from <code>/usr/local/bin</code></p>
<p>and also from <code>/home/$USER/.local/bin</code></p>
<p>And run the commands below:</p>
<pre class="lang-bash prettyprint-override"><code>curl -LO &quot;https://dl.k8s.io/release/v1.24.7/bin/linux/amd64/kubectl&quot;

curl -LO &quot;https://dl.k8s.io/v1.24.7/bin/linux/amd64/kubectl.sha256&quot;

echo &quot;$(cat kubectl.sha256)  kubectl&quot; | sha256sum --check

sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

sudo install -o root -g root -m 0755 kubectl /home/$USER/.local/bin/kubectl
</code></pre>
