共计 302 个字符,预计需要 1 分钟阅读。
准备
列出Snapd软件包
登入ssh,键入如下命令:
snap list

记下所有包名以备后面卸载。
停止Snapd服务
sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded.service
只有Snapd服务停止后,才能被卸载。

卸载
移除软件包
sudo snap remove lxd
sudo snap remove core20
sudo snap remove snapd

卸载Snapd
sudo apt autoremove --purge snapd

此时即卸载完成。
正文完