Install and Set Up kubectl on Ubuntu 16.04.07 LTS on virtualBox 6.1

Hi,

I get the following when trying to verify installation of kubectl on Ubuntu 16.04.07 LTS on virtualBox 6.1

kubectl version --client
returns

cannot execute binary file : Exec format error

ran file /usr/local/bin/kubectl and got the following:
ELF 64-bit LSB executable, x86-64 …
ran dpkg --print-architecture and got the following:
i386

Can anyone help with kubectl install?

How did you install it?

You can specify the arch in the url when grabbing it:

I followed the steps in the link you provided

Forgot about this when originally looking - upstream does not provide binaries for i386. I’d suggest switching over to an amd64 vm. For more info check out this thread: