'kubectl configurationerror in aws cluster

while running Kubernetes on aws services, trying to install kubectl and minikube on t2.medium ubuntu 18.0. And I was trying to check the kubectl version and it was showing error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source