Snap Cheatsheet / Ubuntu completely remove Snap
List snaps
-
snap list
Uninstall
https://www.debugpoint.com/remove-snap-ubuntu/
Firefox:
- snap disable firefox
- systemctl stop var-snap-firefox-common-host\\x2dhunspell.mount
- systemctl disable var-snap-firefox-common-host\\x2dhunspell.mount
- snap remove --purge firefox
Remove other packages:
- snap remove --purge [... all from snap list]
- snap remove --purge snapd
- apt autoremove --purge snapd
- rm -rf /home/myuser/snap
Automated one-liner:
-
snap disable firefox; \
systemctl stop var-snap-firefox-common-host\\x2dhunspell.mount; \
snap remove --purge firefox; \
snap remove --purge lxd; \
snap list | tail --lines=+2 | cut --delimiter=" " --field=1 | xargs --max-args=1 snap remove --purge; \
apt autoremove --purge --yes snapd; \
rm -rv /root/snap
Then install Firefox via apt
- gedit /etc/apt/preferences.d/firefox-no-snap
-
Package: firefox* Pin: release o=Ubuntu* Pin-Priority: -1
-
- add-apt-repository ppa:mozillateam/ppa
- apt install firefox