- 删除已有的Firefox残留（非必须）

```bash
sudo apt list --installed | grep firefox
sudo apt remove --purge firefox*
sudo apt autoremove
sudo snap remove firefox
```

* 关闭和删除snap

```bash
sudo systemctl disable snapd
sudo snap remove --purge snapd
sudo apt remove --purge sanpd

```

* 设置禁止安装snapd

```bash
sudo gedit /etc/apt/preferences.d/nosnap.pref
```

粘贴如下内容保存退出

```bash
Package: snapd
Pin: release a=*
Pin-Priority: -10
```

* 加入Mozilla订阅

```bash
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt update
```

* 设置ppa仓库优先级

```bash
sudo gedit /etc/apt/preferences.d/mozilla.pref
```

粘贴如下内容保存退出

```bash
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
```

更新库

```bash
sudo apt update
```

* 安装Firefox

```bash
sudo apt install firefox
```