比如我运行安装下
sudo snap install phpstorm --classic
出现以下报错:
error: cannot install "phpstorm": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap
其实原因是没有添加软链接到 /snap => /var/lib/snapd/snap
解决方案:
sudo ln -s /var/lib/snapd/snap /snap