Snap package name not available as command on command line

Hi All,

On my Ubuntu 16.04LTS, I install microk8s using “(sudo) snap install microk8s --classic” . Now I was hoping for the nice microk8s.kubectl interface, this is only available when I run “sudo microk8s.kubectl”, “microk8s.kubectl” gives “command not found”. “snap run microk8s.kubectl” does work, but is verbose to type.

Did I misconfigure something?

Thanks for any help!

is this the first snap you have installed? If so, then you will need to restart your session by logging out and back-in again to get the /snap/bin entry added to the PATH environment variable.

1 Like