Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zoonderkins/8619083d8715bbecf1b09b29c95c091c to your computer and use it in GitHub Desktop.
Save zoonderkins/8619083d8715bbecf1b09b29c95c091c to your computer and use it in GitHub Desktop.
Reinstall microk8s on Debian with snap

sudo systemctl stop snapd && sudo systemctl disable snapd

# Workaround for https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1998710
# This command is needed starting from Ubuntu 22.10
# Without it an error is returned when running the snapd purge command
# In that case you need to reinstall snapd to cleanly remove it in a second attempt

snap remove microk8s --purge

# purge snapd
sudo apt purge snapd

# remove no longer needed folders
rm -rf ~/snap
sudo rm -rf /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd /root/snap

Reinstall microk8s

snap install microk8s --classic --channel=1.31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment