无法卸载 Firefox snap

无法卸载 Firefox snap

我正在尝试删除 Ubuntu 22.10 上的 snap “firefox”。不幸的是,一个错误阻止了该任务的完成。

# snap list

Nome               Versione          Rev    Tracciamento     Publisher   Note

bare               1.0               5      latest/stable    canonical?  base
core               16-2.58.2         14784  latest/stable    canonical?  core
core18             20230207          2697   latest/stable    canonical?  base
core20             20230126          1822   latest/stable    canonical?  base
firefox            106.0-1           1969   latest/stable/?  mozilla?    -
gnome-3-38-2004    0+git.6f39565     119    latest/stable    canonical?  -
gtk-common-themes  0.1-81-g442e511   1535   latest/stable    canonical?  -
hello-world        6.4               29     latest/stable    canonical?  -
snap-store         41.3-66-gfe1e325  638    latest/stable    canonical?  -
snapd              2.58.2            18357  latest/stable    canonical?  snapd

当我调用 Firefox 时,它正确启动。此时,我尝试像这样删除 snap firefox:

$ snap remove --purge firefox

但它不想这样做:

error: cannot perform the following tasks:
- Remove data for snap 'firefox' (1969) (unlinkat /var/snap/firefox/common/host-hunspell/en_US.aff: read-only file system)

我找到了这个有帮助的问题所以,这就是我所做的:

root@marietto-BHYVE:/etc/systemd/system# lsblk -fe7 -o+ro

NAME FSTYPE FSVER LABEL UUID                                                         FSAVAIL FSUSE%   MOUNTPOINTS                     RO

vda                                                                                                                                                                                                   0
--vda1
        vfat             FAT32              A17A-EEFA                                                504,9M     1%   /boot/efi                                             0
--vda2
        ext4            1.0                   2e254150-7969-4cbb-bf4c-9b9e0bf9ef64  160,8G    13%  /var/snap/firefox/common/host-hunspell
                                                                                                                                  /                                                         0

# sudo systemctl stop var-snap-firefox-common-host\\x2dhunspell.mount

Warning: The unit file, source configuration file or drop-ins of var-snap-firefox-common-host\x2dhunspell.mount changed on disk. Run 'systemctl daemon-reload' to reload units.
root@marietto-BHYVE:/etc/systemd/system# systemctl daemon-reload


root@marietto-BHYVE:/etc/systemd/system# lsblk -fe7 -o+ro

NAME FSTYPE FSVER LABEL UUID                                                         FSAVAIL FSUSE%   MOUNTPOINTS                     RO

vda                                                                                                                                                                                                   0
--vda1
        vfat             FAT32              A17A-EEFA                                                504,9M     1%   /boot/efi                                             0
--vda2
        ext4            1.0                   2e254150-7969-4cbb-bf4c-9b9e0bf9ef64  160,8G    13%  /                                                         0  


root@marietto-BHYVE:/etc/systemd/system# snap remove firefox

2023-02-24T14:06:57+01:00 ERROR cannot remove snap file "firefox", will retry in 3 mins: unlinkat /snap/firefox/1969/data-dir: read-only file system.

相关内容