在Ubuntu中卸载和重新安装基于Snap的Firefox并避免“只读文件系统”错误
卸载Firefox
直接尝试移除Firefox可能提示类似“unlinkat /var/snap/firefox/common/host-hunspell/en_US.dic: read-only file system”的错误,因此需要先解除只读挂载点:
sudo systemctl stop var-snap-firefox-common-host\\x2dhunspell.mount
sudo systemctl disable var-snap-firefox-common-host\\x2dhunspell.mount
sudo umount /var/snap/firefox/common/host-hunspell
禁用Firefox的Snap包:
sudo snap disable firefox
移除Firefox:
sudo snap remove --purge firefox
安装Firefox
使用Snap可以直接安装Firefox:
sudo snap install firefox
若提示“cannot locate base snap core22”错误,请尝试重新启用core系列Snap包,再安装Firefox:
sudo snap disable core22
sudo snap enable core22
sudo snap disable core20
sudo snap enable core20
sudo snap disable core18
sudo snap enable core18
参考资料
https://cn.ubuntu.com/blog/what-is-snap-application
https://askubuntu.com/questions/1414173/completely-remove-firefox-snap-package
页面版本: 3, 最后编辑于: 23 Oct 2024 08:08