[snap] Unlinkat /var/snap/firefox/common/host-hunspell/en_US.aff: read-only file system

Grizzly Real_Grizz_Adams at yahoo.co.uk
Fri Feb 24 07:12:09 UTC 2023


23 February 2023  at 23:53, Mario Marietto wrote:
Re: [snap] Unlinkat /var/snap/firef (at least in part)

>I tried to remove every snap from Ubuntu 22.10 but I don't remember the
>specific order. For sure I gave some wrong command and now I went inside a
>black hole and I don't see the light anymore.

I have done the same (albeit on Unity 22.10)

$ snap list # to list all the existing snap packages

$ sudo snap remove <name-of-the-package> # to remove the snap package

$ sudo snap remove snap-store # as example, to remove the snap-store package

Note: you can´t remove the `core´ snap package with sudo snap remove core, but 
we´ll do it later. Also kudos to Kevin Custer for the next step on snap core 
unmount!

$ sudo umount /snap/snapd/XXXX # to unmount the snap core service

Note: replace the XXXX with the ID number inside the core directory on your 
system. You can find it by running the df command and getting something like 
/dev/loop4 27776 27776 0 100% /snap/snapd/7264.

$ sudo apt purge snapd # to remove and purge the snapd package and all of its 
related services

$ sudo rm -rf ~/snap /snap /var/snap /var/lib/snapd # to remove all the folder 
# related to snap, if existing

$ sudo nano /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

# refresh package cache via command:

$ sudo apt update


Hope this helps



More information about the ubuntu-users mailing list