Microk8s installation failing on ubuntu 22.10

sudo snap install microk8s --classic --channel=1.29/stable

error: cannot perform the following tasks:

  • Mount snap “microk8s” (6809) (snap “microk8s” assumes unsupported features: snapd2.52 (try to update snapd and refresh the core snap))

Also same error with below command.

sudo snap install microk8s --classic --channel=1.30

error: cannot perform the following tasks:

  • Mount snap “microk8s” (6876) (snap “microk8s” assumes unsupported features: snapd2.52 (try to update snapd and refresh the core snap))

Already ran this command.
sudo snap install core snapd

core 16-2.61.2 from Canonical✓ installed
snapd already installed

Working for old version 1.18 and 1.19. But not the latest one 1.30.

sudo snap install microk8s --classic --channel=1.18/stable
sudo snap refresh microk8s --classic --channel=1.19/stable

Please suggest.

Hi - sorry you are having problems. That seems like a strange one.
Can you post the output of

$ SNAPD_DEBUG=1 snap install microk8s --classic

and

$ journalctl -e --no-pager -u snapd

?

And actually, as a first port of call, I might suspect that something whacky is happening with snapd, so try re-installing that as a first step:

sudo apt purge snapd 
sudo apt install snapd

then try re-installing MicroK8s, and then try the other things

microk8s 1.29 and 1.30 is known to be broken on Debian and Ubuntu

A fix is available in the edge channel


# switch to 1.30/edge channel if running 1.30
sudo snap refresh microk8s --channel 1.30/edge

# switch to 1.29/edge channel if running 1.29
sudo snap refresh microk8s --channel 1.29/edge