Using the native apt version of Firefox on Ubuntu 22.04

If you don't want to use the snap version of firefox on Ubuntu 22.04, you can pin the mozilla-team PPA version which is stable so you can have native performance.

Remove the snap version of Firefox:

   sudo snap remove firefox
   sudo apt remove firefox

The following will install firefox stable from the PPA and keep thunderbird as the official Ubuntu repo version:

   sudo add-apt-repository ppa:mozillateam/ppa


   sudo nano /etc/apt/preferences.d/99mozillateam

Paste the following:

   Package: firefox*
   Pin: release o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main
   Pin-Priority: -1

   Package: firefox*
   Pin: release o=LP-PPA-mozillateam
   Pin-Priority: 400

   Package: thunderbird*
   Pin: release o=LP-PPA-mozillateam
   Pin-Priority: -1

   Package: thunderbird*
   Pin: release o=Ubuntu,a=jammy,n=jammy,l=Ubuntu,c=main
   Pin-Priority: 500

You can verify it's working by running the following command, it should list the candidate as the PPA version to be installed:

   apt policy firefox
     Installed: 99.0.1+build1-0ubuntu0.22.04.1~mt1
     Candidate: 99.0.1+build1-0ubuntu0.22.04.1~mt1
     Version table:
        1:1snap1-0ubuntu2 -1
           500 jammy/main amd64 Packages
    *** 99.0.1+build1-0ubuntu0.22.04.1~mt1 400
           500 jammy/main amd64 Packages

           100 /var/lib/dpkg/status

Install the PPA version of Firefox or Firefox ESR if desired:

   sudo apt install firefox
   sudo apt install firefox-esr

If you want to revert, just install the ppa-purge package and execute it. This will automatically downgrade all packages and disable the PPA. See below.

   sudo apt install ppa-purge
   sudo ppa-purge ppa:mozillateam/ppa
   sudo rm /etc/apt/preferences.d/99mozillateam


Popular posts from this blog

Nutanix on AMD Processors

About the new site...