kubectl info: exec: fork/exec /usr/local/bin/kubectl: exec format error

0 votes

Hi Guys,

I installed kubectl in my system. I am trying to check version of kubectl, but it shows me the below error.

$ kubectl version
Failed to execute process '/usr/local/bin/kubectl'. Reason:
exec: Exec format error
The file '/usr/local/bin/kubectl' is marked as an executable but could not be run by the operating system.
May 19 in Kubernetes by akhtar
• 25,030 points
327 views

1 answer to this question.

0 votes

Hi@akhtar,

The most common reason for this error is that after updating your Minikube installation, you also need to upgrade kubectl. So you have to upgrade your kubectl installation.

$ brew upgrade kubectl

Now you can start your minikube.

answered May 19 by MD
• 56,480 points

Related Questions In Kubernetes

+1 vote
5 answers
+1 vote
1 answer
0 votes
2 answers

" apt-get install -y kubelet kubeadm kubectl" giving error

apt-get install -y kubelet kubeadm kubectl kubernetes-cni READ MORE

answered Sep 10 in Kubernetes by anonymous
2,639 views
0 votes
1 answer

permissions related to AWS ECR

if you add allowContainerRegistry: true, kops will add those permissions ...READ MORE

answered Oct 9, 2018 in Kubernetes by Kalgi
• 51,950 points
141 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
8,361 views
0 votes
1 answer