Microk8s is not running. Use microk8s inspect for a deeper inspection

Hello World!

I’m trying to Install MicroK8s on Linux, yet

X@X:~$ sudo snap remove microk8s --purge
[sudo] password for toor: 
microk8s removed
X@X:~$ sudo snap install microk8s --classic
microk8s (1.22/stable) v1.22.4 from Canonical✓ installed
X@X:~$
X@X:~$ microk8s status --wait-ready

^C

X@X:~$ microk8s.status 
microk8s is not running. Use microk8s inspect for a deeper inspection.
X@X:~$ microk8s.inspect 
Inspecting Certificates
Inspecting services
  Service snap.microk8s.daemon-cluster-agent is running
  Service snap.microk8s.daemon-containerd is running
  Service snap.microk8s.daemon-apiserver-kicker is running
  Service snap.microk8s.daemon-kubelite is running
  Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system information
  Copy processes list to the final report tarball
  Copy snap list to the final report tarball
  Copy VM name (or none) to the final report tarball
  Copy disk usage information to the final report tarball
  Copy memory usage information to the final report tarball
  Copy server uptime to the final report tarball
  Copy current linux distribution to the final report tarball
  Copy openSSL information to the final report tarball
  Copy network configuration to the final report tarball
Inspecting kubernetes cluster
  Inspect kubernetes cluster
Inspecting juju
  Inspect Juju
Inspecting kubeflow
  Inspect Kubeflow

# Warning: iptables-legacy tables present, use iptables-legacy to see them
Building the report tarball
  Report tarball is at /var/snap/microk8s/2695/inspection-report-20211130_234736.tar.gz
X@X:~$ 

my environment:

X@X:~$ uname -a
Linux X.X.X 5.10.0-kali9-rt-amd64 #1 SMP PREEMPT_RT Debian 5.10.46-4kali1 (2021-08-09) x86_64 GNU/Linux
X@X:~$ cat /etc/debian_version 
kali-rolling
X@X:~$
X@X:~$ snap --version
snap    2.52.1
snapd   2.52.1
series  16
kali    2021.4
kernel  5.10.0-kali9-rt-amd64
X@X:~$ 

Hello dear,
I have the same issue. Did you fix this error? How?

Hi all,

maybe this will help: Removing MicroK8s sometimes leaves iptables rules behind · Issue #3092 · canonical/microk8s · GitHub
Seems that even when you “purge” the microk8s installation, some rules are still there and this might prevent microk8s from working …