When attempting to install the snap microk8s 1.19/stable on a Linux machine we got any of the following errors:
error: cannot perform the following tasks:
- Run configure hook of "microk8s" snap if present (run hook "configure":
or
- Mount snap "microk8s" (1769) ([stop snap-microk8s-1769.mount] failed with exit status -1: *** stack smashing detected ***: terminated
or
+ /snap/microk8s/1769/kubectl --kubeconfig=/var/snap/microk8s/1769/credentials/client.config apply -f /var/snap/microk8s/1769/args/cni-network/cni.yaml
The connection to the server 127.0.0.1:16443 was refused - did you specify the right host or port?
or
- Fetch and check assertions for snap "microk8s" (1769) (cannot verify snap "microk8s", no matching signatures found)
We had microk8s previously installed but had removed it some time ago, just mentioning it in case this could help. I doubt it is something to do with previous remnants, we also did temporary disable the firewall just to be sure it is not a firewall issue.