安装microk8s报如下错:

error: cannot perform the following tasks:
- Run install hook of "microk8s" snap if present (run hook "install": /var not root-owned 1000:1000)
 

执行这个命令看看输出,这个可以得到更详细的错误信息

SNAPD_DEBUG=1 snap install microk8s --classic