UnSnap Firefox
From:     https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04


Intro Step 1 Remove Snap FF step 2 Add Repo Step 3 Alter FF Pkg Prio
step 4 ff Upgrades Installed Auto Step 5 Install FF Via Apt Sidenotes




Installing Firefox via Apt (Not Snap) image showing a deb package with a tick, the firefox logo, and the snap app icon with a cross
Intro The good news is that you can install a Firefox deb on Ubuntu 22.04 (or 22.10, or 23.04) with a couple of commands. First you add the Mozilla Team PPA, then you install the Firefox deb from the PPA, and then you ‘pin’ the package to ensure that the Firefox Snap is NOT reinstalled at a later date. However, before going further you should backup/export any important browser settings, bookmarks, and other data from Firefox — just incase anything goes rogue. When you’re reading to proceed do the following:
Step 1: Remove the Firefox Snap by running the following command in a new Terminal window: sudo snap remove firefox
Step 2: Add the (Ubuntu) Mozilla team PPA to your list of software sources by running the following command in the same Terminal window: sudo add-apt-repository ppa:mozillateam/ppa
Step 3: Next, alter the Firefox package priority
to ensure the PPA/deb/apt version of Firefox is preferred. This can be done using a slither of code from FosTips (copy and paste it whole, not line by line): echo 'Package: * Pin: release o=LP-PPA-mozillateam Pin-Priority: 1001 ' | sudo tee /etc/apt/preferences.d/mozilla-firefox
Step 4: Since you’ll (hopefully) want future Firefox upgrades to be installed automatically, Balint Reczey shares a concise command on his blog that ensures it happens: echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox

Step 5: Finally, install Firefox via apt by running this command: sudo apt install firefox Once Firefox installation is complete you can pop open the app launcher (click the icon in the Ubuntu Dock or click press the super key on your keyboard). Now when you click on the Firefox icon it will launch a de -Snapped version you can then pin to the Ubuntu dock.

Sidenotes… If your main reason for wanting a .deb version of Firefox is so you can install GNOME extensions I will point out there is a simpler workaround: install the (fantastic) GNOME Extension Manager app from the repo using sudo apt install gnome-shell-extension-manager. Want to install GNOME extensions? Try the new extension manager app instead! That tool renders the need for browser integration totally moot which is why it’s on our list of things to do after installing Ubuntu 22.04. It lets you search, browse, update, install, and manage your extensions within an app not a browser. Also, keep in mind that the “bug” that means some third-party apps and extensions (like password managers) don’t work with the Firefox snap are being addressed and will be fixed in the future — so consider hanging tight for a solution! Finally, the Mozilla Team PPA was initially designed to provide Extended Support Release (ESR) versions of the browser. I haven’t been able to locate any statement to say whether the PPA will get new builds of Firefox ASAP (as with the Snap version) or merely at a later date, volunteer dependent. Keep this in mind. But hey: I know many of you have been asking how to replace the Firefox Snap with a deb version and, short of downloading and linking the Firefox binary — not the worst way to run it; it was my workaround during 21.10 — this method is arguably the most analogous drop-in for the (now gone) old apt build.