Ubuntu 24.04卸载snap服务

snap remove --purge firefox
snap remove --purge snap-store
snap remove --purge gnome-42-2204
snap remove --purge gtk-common-themes
snap remove --purge snapd-desktop-integration
snap remove --purge bare
snap remove --purge firmware-updater
snap remove --purge canonical-livepatch
snap remove --purge core22
snap remove --purge snapd
sudo apt remove --autoremove snapd

cat /etc/apt/preferences.d/nosnap.pref

# To prevent repository packages from triggering the installation of snap,
# this file forbids snapd from being installed by APT.

Package: snapd
Pin: release a=*
Pin-Priority: -10
sudo apt update
rm -rf ~/snap/
sudo rm -rf /snap/
sudo rm -rf /var/cache/snapd/
sudo rm -rf /var/lib/snapd/
posted @ 2024-07-11 14:02  rdwr  阅读(963)  评论(0编辑  收藏  举报