ubuntu 22.04删除snap,安装deb版本的Firefox
1. 查看已安装的snap软件包
snap list
2. 卸载各snap软件包
sudo snap remove --purge firefox
sudo snap remove --purge gnome-3-38-2004
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge bare
sudo snap remove --purge core20
最后删除snapd
sudo snap remove --purge snapd
3. 阻止snap软件包
sudo vim /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
4. 添加Mozilla Team PPA
sudo add-apt-repository ppa:mozillateam/ppa
5. 安装Firefox
sudo apt update
sudo apt install -t 'o=LP-PPA-mozillateam' firefox
6. 设置Mozilla Team PPA的Firefox优先
sudo vim /etc/apt/preferences.d/mozillateamppa
Package: firefox*
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 501
7. 参考
https://ubuntuhandbook.org/index.php/2022/04/remove-snap-block-ubuntu-2204/
https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/