Ubuntu 22.04 Make Firefox a Native Install and not a Snap

In Ubuntu 22.04 Canonical made the decision to make Firefox a Snap and not a traditional package installation. This results in a slower experience as well as some integration issues with Gnome.

Open a terminal and perform the following commands.

To fix this, uninstall the Snap:

sudo snap remove firefox

Add the Mozilla repository:

sudo add-apt-repository ppa:mozillateam/ppa

Press an Enter key to complete the repository import.

Copy the following as a single line and run it in the terminal to change the installation priorities to favor the Firefox DEB file.

echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox

Install Firefox:

sudo apt install firefox