I have the app minikube in /usr/local/bin/minikube. When I do minikube version with the whole path, I get:
$ /usr/local/bin/minikube version
minikube version: v0.28.2
When I do minikube version without the path, I get:
$ minikube version
bash: /snap/bin/minikube: No such file or directory
The /usr/local/bin is included in PATH:
$ echo $PATH
//usr/local/bin:/home/eric/.local/bin:/home/eric/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Why isn't minikube found without the full path, and what does /snap/bin have to do with anything? Any help much appreciated!
Added info as per comment below from @mpr: Some time ago, I installed minikube with snap like this:
sudo snap install minikube
It was later removed with
sudo snap remove minikube
Much later, having forgotten about the snap install, I installed it from the minikube site with curl:
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.28.2/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
Just figured it out: There was a minikube directory under ~/snap, probably left over from a previous install. Fixed the problem doing:
This snap-business is a bit annoying...
Starting some experimentation with Kubernetes on a newly installed Ubuntu 18.04 system I also initially used
snap
to installminikube
, encountered errors, and then decided to remove the snap.I installed
minikube
a second time withcurl
.I also encountered this error :
This was all performed in a single terminal window.
I did not discover any residual snap files in any of the locations mentioned in the comments above. The error went away when I killed and started a new terminal window.
The error is NOT reproducable now that I have successfully installed and run
minikube
on this system.