In Ubuntu 22.04 the firefox snap was installed as default. I just removed it using the command sudo snap remove firefox
but inside the file computer/var/lib/snapd/seed/snaps there exists an firefox snap locked package weighing about 163 mb how can I remove that
-
This worked like a charm. Hope it helps you like it helped me. ubuntuhandbook.org/index.php/2022/04/…– wileyCoyoteCommented Jan 11, 2023 at 21:24
4 Answers
For those who get the error in Ubuntu 22.04:
$ sudo snap remove --purge firefox
error: cannot perform the following tasks:
- Remove data for snap "firefox" (1943) (unlinkat /var/snap/firefox/common/host-hunspell/en_ZA.dic: read-only file system)
Verify that indeed /var/snap/firefox/common/host-hunspell
is mounted as an ext4 file system using lsblk -fe7 -o+ro
If so, stop the Firefox service
$ sudo systemctl stop var-snap-firefox-common-host\\x2dhunspell.mount
$ sudo systemctl disable var-snap-firefox-common-host\\x2dhunspell.mount
Removed /etc/systemd/system/default.target.wants/var-snap-firefox-common-host\x2dhunspell.mount.
Removed /etc/systemd/system/multi-user.target.wants/var-snap-firefox-common-host\x2dhunspell.mount.
Then the uninstall command should work:
sudo snap remove firefox
-
4@Mooncake I'm glad to hear that my "journey" is saving valuable time for others, thanks for the feedback. Commented Dec 2, 2022 at 6:25
-
BE VERY CAREFUL WITH
--purge
! IT WILL DELETE BOTH THE PROFILE IN YOUR SNAP FOLDER AND ITS BACKUP.– J. MiniCommented Feb 10 at 23:21
You used sudo snap remove firefox
but you should have used
snap disable firefox
snap remove --purge firefox
-
So do I need to install firefox once again using that snap package installing it via software installer then using the above commands Commented Jun 15, 2022 at 15:38
-
Once removed, you can install the APT version if you prefer (or re-install the snap). The instructions to install the APT version are in the reference link provided in my answer.– grahamCommented Jun 15, 2022 at 17:41
-
Ok, since I purged the firefox I cannot install that package again from seed directory using software installer, so if I install it from software centre an snap version can I completely remove the seed file by using above command. Commented Jun 17, 2022 at 12:20
-
I followed the instructions in my answer and
Firefox
is still available inUbuntu Software
as a snap so your comment seems not to make sense 🤔– grahamCommented Jun 17, 2022 at 12:22 -
1snap remove --purge firefox gave me an error: error: cannot perform the following tasks: - Remove data for snap "firefox" (1918) (unlinkat /var/snap/firefox/common/host-hunspell/en_US.dic: read-only file system) Commented Oct 8, 2022 at 0:32
The following commands can be used to remove Firefox snap:
sudo umount /var/snap/firefox/common/host-hunspell
sudo snap remove firefox
Files in that folder (/var/lib/snapd/seed/snaps
) came pre-installed with the operating system. No snap
command will remove them. Deleting them manually will remove them, but can potentially break something eventually maybe. If you won't be using the firefox snap, most likely it's fine to just manually delete the file, but there is always the potential that it may break something later.
If you want to install Firefox as a .deb, you can follow the instructions here to install the Mozilla PPA and prevent apt
from "updating" to a snap
automatically.