bash: /usr/local/bin/kubectl: cannot execute binary file: Exec format error

While running this command :
[local@localhost:~] kubectl version

This error message has just popped up :
bash: /usr/local/bin/kubectl: cannot execute binary file: Exec format error

Further checkings are required :


[root@localhost:~]# file /usr/local/bin/filename
/usr/local/bin/kubectl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped


[root@localhost:~]# uname -a
Linux workstation 3.16.0-4-686-pae #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) i686 GNU/Linux

In that particular case, that’s the wrong binary file for this target OS (i686)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s