Can't 'sudo snap remove microk8s'
See original GitHub issueInstalled microk8s Installed kubeflow. Rather than remove kubeflow, I decided to just remove microk8s. But, it errors:
$ sudo snap remove microk8s
error: cannot perform the following tasks:
- Stop snap "microk8s" services ([start snap.microk8s.daemon-apiserver.service snap.microk8s.daemon-docker.service snap.microk8s.daemon-etcd.service snap.microk8s.daemon-proxy.service snap.microk8s.daemon-scheduler.service snap.microk8s.daemon-kubelet.service snap.microk8s.daemon-controller-manager.service] failed with exit status 5: Failed to start snap.microk8s.daemon-apiserver.service: Unit snap.microk8s.daemon-apiserver.service not found.
Failed to start snap.microk8s.daemon-docker.service: Unit snap.microk8s.daemon-docker.service not found.
Failed to start snap.microk8s.daemon-etcd.service: Unit snap.microk8s.daemon-etcd.service not found.
Failed to start snap.microk8s.daemon-proxy.service: Unit snap.microk8s.daemon-proxy.service not found.
Failed to start snap.microk8s.daemon-scheduler.service: Unit snap.microk8s.daemon-scheduler.service not found.
Failed to start snap.microk8s.daemon-kubelet.service: Unit snap.microk8s.daemon-kubelet.service not found.
Failed to start snap.microk8s.daemon-controller-manager.service: Unit snap.microk8s.daemon-controller-manager.service not found.
)
After that, still can’t remove it.
$ snap list
Name Version Rev Tracking Developer Notes
core 16-2.33 4830 stable canonical core
kubectl 1.10.3 405 stable canonical classic
microk8s v1.10.3 55 beta canonical disabled,classic
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Can't 'sudo snap remove microk8s' · Issue #58 - GitHub
The failures in removing the snap are most probably because of mounted endpoints not cleaning up on time. If you do a cat...
Read more >How do I kill microk8s kubernetes? - ubuntu - Stack Overflow
You can remove the microk8s using following command in ubuntu: sudo snap remove microk8s. The above command should remove all the services ...
Read more >After uninstalling Microk8s, htop commands still shows its ...
I tried with sudo snap remove microk8s . I just tried killing with pid in sudo previlege, And it stopped the process.
Read more >Troubleshooting - MicroK8s
It is important to recognise that things can go wrong. But MicroK8s gives you tools to help work out what has gone wrong,...
Read more >Sudo snap install microk8s --classic fails - Discuss Kubernetes
Hi, On a Debian Stable (version 9.7) I can't install microk8s as I am getting the following sudo snap install microk8s --classic error: ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@carmine make sure you run
microk8s.reset
beforesnap remove microk8s
https://github.com/juju-solutions/microk8s/blob/608e/README.md#removing-microk8sHi @carmine,
The failures in removing the snap are most probably because of mounted endpoints not cleaning up on time. If you do a
cat /proc/mounts | grep microk8s
you should be able to see what is still mounted. Then you can umount the endpoints manually and try to re-remove the snap.This has been addressed in the snap in edge. We will be doing a release to beta soon in the meantime could you use the edge channel?
sudo snap install microk8s --classic --edge
Thanks.