How to Install Firefox as a .Deb on Ubuntu 22.04 (Not a Snap)

In this guide I detail how to install Mozilla Firefox as a .deb package on Ubuntu 22.04 LTS or above and not as a snap app.

This guide is needed because Ubuntu 22.04 and later comes with the Firefox snap package by default. The snap is the only version of Firefox included ‘out of the box’. But even if you run apt install firefox it will NOT install a Deb version as before. Instead, it’ll re-install the snap.

If you specifically don’t want to use the Firefox Snap — and there are reasons you might not — this can be frustrating.

Snap apps have their pluses (no, really) there are some oft-mentioned negatives:

  • Snap apps update automatically in the background
  • Snap app startup times are slower than regular software
  • Some third-party integrations are (currently) broken

All of these are surmountable; there are command line options to adjust, pause, or delay snap updates; slow app start up times are being worked on; and issue regarding broken desktop integrations (e.g, GNOME extensions, third-party password managers, etc) are also in various stages of being fixed.

But still…

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

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.

Similar Posts

  • RHEL 6 NFS

    Ensuring NFS Services are running on RHEL 6 The first task is to verify that the NFS services are installed and running on your RHEL 6 system. This can be achieved either from the command line, or using the graphical services tool. Begin by confirming that the NFS service is installed by running the following command from a…

  • ACPI Errors on Ubuntu bootup

    You can get rid of those ACPI Error messages by 1. Open ‘/etc/default/grub’ in an editor with root access. In your case I believe Ubuntu uses gedit as it’s text editor Code: 2. The line with ‘GRUB_CMDLINE_LINUX_DEFAULT’, add the loglevel=3 part. The original looks like GRUB_CMDLINE_LINUX_DEFAULT=’quiet splash’ Change it to this: Code: Then save the…

  • Transfer data between RHEL and Solaris

    Transfer Data between RHEL and Solaris On SUN: in /etc/dfs/dfstab file addshare -F nfs /export/homethen type:/etc/init.d/nfs.server start On RHEL: to mounttype mount host:/export/home /mnt/sundisk Or in /etc/fstab host:/export/home /home/sundisk nfs defaults 0 0 Then type mount /home/sundisk Or type mount -aTo make nfs start at boot type: chkconfig nfs on to sharein file /etc/exports add/home/vnmr1…

  • RHEL 6 Install Info

    Bios Settings on HPZ420 Enter BIOS and change the following settings: Storage                 Storage options                                 SATA Mode ==> IDE                 Boot Order                                 UEFI Boot Sources ==> Disable All                                 Legacy Boot Sources ==> Enable All Installing RHEL 6.3 Prerequisites You will need: The RHEL 6.3 Installation DVD and license from RedHat (you need the Workstation…

  • Mount Windows Share on RHEL

    In CLI    mount -t cifs //ntserver/dir -o username=user,password=pass /mnt/ntserver    In /etc/fstab    //ntserver/dir   /mnt/ntserver   cifs   credentials=/root/.smbpasswd,file_mode=0777,dir_mode=0777   0   0 Then create a file /root/.smbpasswd  with permissions set to 600    username=user    password=pass In /etc/hosts add IP address of ntserver.