How to Install the Latest (Non-ESR) Firefox on Debian 11

This guide shows you two ways to install the latest Firefox on Debian 11, so you can enjoy all the latest features and improvements.

Firefox is one of the most popular web browsers in the world, known for its functionality, security, and reliability. While the default version of Firefox on Debian 11 is the Extended Support Release (ESR) version, some users prefer to use the latest stable release of Firefox for its new features and improvements.

This blog post will guide you through installing the latest (non-ESR) version of Firefox on Debian 11, so you can enjoy the latest features and enhancements in your web browsing experience. But before we go any further, let’s explain something important.

Whatโ€™s the Difference between Firefox and Firefox ESR?

Firefox and Firefox ESR (Extended Support Release) are web browsers developed by Mozilla, but they have some key differences.

1. Release Cycle

Firefox has a rapid release cycle, which means that new versions of the browser are released every four weeks, with regular updates and security patches. On the other hand, Firefox ESR has a slower release cycle, with new versions released every year or so, with only critical security updates released in between.

2. Stability

Firefox ESR is designed for organizations and enterprises prioritizing stability and compatibility over new features. So, because Firefox ESR is more stable, some Linux distro developers prefer it, which is precisely the case with Debian โ€“ a distro well-known for its conservative and careful approach to included software, prioritizing security and stability first.

On the other hand, Firefox targets regular users who want the latest features and improvements as soon as they are released, even if they may be less stable or require more frequent updates.

Now that we’ve cleared that up let’s get to the meat of the matter: how to install the most recent stable non-ESR version of Firefox on Debian 11.

Method 1: Install Firefox on Debian 11 from Ubuntuzilla Repository

This is preferred because it uses the native Firefox DEB installation package. Additionally, this approach guarantees you always get the latest up-to-date version and will automatically receive all future software updates as they become available. So, let’s get started.

Here is the default Firefox ESR running on our Debian 11 system.

Firefox ESR web browser running on Debian 11.
Firefox ESR web browser running on Debian 11.

Step 1: Remove Firefox ESR

The first step is to uninstall the current version of Firefox ESR on our Debian 11 system. If you do not do this and try to install the regular Firefox version with the existing Firefox ESR, an error message will appear, and the installation will fail. So, let’s do it.

sudo apt purge firefox-esr
Remove the current Firefox ESR version.
Remove the current Firefox ESR version.

When we uninstall Firefox ESR from our Debian 11 system, we can proceed to the next step, adding the Ubuntuzilla repository.

If this is the only browser on your system and you are concerned, you can always install another. For example, here’s our easy-to-follow guide on how to install Google Chrome on Debian 11.

Step 2: Add the Ubuntuzilla Repository GPG Key

Ubuntuzilla project hosts an APT repository with DEB packages of the latest official release versions of Firefox, SeaMonkey, and Thunderbird – this repository work on any APT-based distribution, including Ubuntu and Debian.

Therefore, it is the perfect candidate for installing the most recent stable version of Firefox on our Debian 11 system and receiving regular updates when a new browser version is released.

Create the directory that will store the GPG keys used to sign the repository packages.

sudo mkdir /etc/apt/keyrings/

If the directory exists already, you will be informed that it cannot be created, which is perfectly normal.

Next, import the Ubuntuzilla GPG repository key to your Debian system. This security feature ensures that the software youโ€™re installing is authentic. Then, run the three commands listed below in the order provided.

sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 2667CA5C
sudo gpg -ao ~/ubuntuzilla.gpg --export 2667CA5C
cat ubuntuzilla.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/ubuntuzilla.gpg
Add the Ubuntuzilla repository GPG Key.
Add the Ubuntuzilla repository GPG Key.

You can now safely delete “ubuntuzilla.gpg” from your home directory because it is no longer required.

sudo rm ~/ubuntuzilla.gpg

Step 3: Add the Ubuntuzilla Repository to Debian 11

After importing the GPG keys, weโ€™ll add the Ubuntuzilla repository to our Debian 11 system. This implies that the update package will be made available with the rest of your systemโ€™s regular updates if a new version is released.

echo "deb [signed-by=/etc/apt/keyrings/ubuntuzilla.gpg] http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | sudo tee /etc/apt/sources.list.d/ubuntuzilla.list > /dev/nullCode language: PHP (php)
Add the Ubuntuzilla repository to Debian 11.
Add the Ubuntuzilla repository to Debian 11.

Notice that the command produces no output.

Next, refresh the package list.

sudo apt update
Update the package base.
Update the package base.

As you can see in the image above, our new Ubuntuzilla repository is now available and ready to be used.

Step 4: Install the Latest (Non-ESR) Firefox on Debian 11

To install the latest up-to-date Firefox release on Debian, run the below command.

sudo apt install firefox-mozilla-build
Install the Latest (Non-ESR) Firefox on Debian 11.
Install the Latest (Non-ESR) Firefox on Debian 11.

Step 5: Launch Firefox Browser

Thatโ€™s all! Once installed, you can launch it from the application menu and enjoy it. Type โ€œfirefoxโ€ and click on the icon when it appears.

Launching Firefox web browser.
Launching Firefox web browser.

Firefox will start. Enjoy it!

The latest Firefox running ะพn Debian 11.
The latest Firefox running ะพn Debian 11.

(Optional) Uninstall Firefox

If you decide to remove the Firefox browser from your Debian system for some reason, you can do it quickly and easily by typing the command shown below:

sudo apt purge firefox-mozilla-build

Method 2: Install Firefox on Debian 11 as a Flatpak App

Flatpak is a widely accepted and established software distribution format in the Linux world. However, Debian 11 does not come with Flatpak support by default. So if you don’t already have it installed, add it first.

sudo apt install flatpak
Adding Flatpak support to Debian 11.
Adding Flatpak support to Debian 11.

But if youโ€™re unfamiliar with Flatpak, our excellent beginner’s guide will come in handy.

Step 1: Remove Firefox ESR

As in the previous method, remove the currently installed version of Firefox ESR first.

sudo apt purge firefox-esr

Step 2: Add Flathub App Store

After installing the Flatpak runtime on your Debian 11 system, you must add the Flathub app store. Things are a lot simpler here. Run the following command in the terminal to enable the Flathub remote if it is not already enabled:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepoCode language: JavaScript (javascript)
Add Flathub app store.
Add Flathub app store.

Notice that the command produces no output.

Step 3: Install the Latest (Non-ESR) Firefox as a Flatpak package on Debian 11

Finally, run the following command to install the latest Firefox release on your Debian system:

flatpak install flathub org.mozilla.firefoxCode language: CSS (css)
 Install the latest (Non-ESR) Firefox as a Flatpak package on Debian 11.
Install the latest (Non-ESR) Firefox as a Flatpak package on Debian 11.

Next, log out and log back in. You may then launch Firefox from your current app launcher as usual.

Launching Firefox web browser.
Launching Firefox web browser.

(Optional) Remove Firefox Flatpak

If you want to uninstall the Firefox Flatpak package from your Debian 11 system, use the commands below:

flatpak uninstall --delete-data org.mozilla.firefoxCode language: CSS (css)

And following best practices, free up disk space by using the following command to remove unnecessary runtime libraries:

flatpak uninstall --unused

Conclusion

This brings us to the end of our guide on installing the latest non-ESR Firefox on Debian 11. Our first recommendation is to install it as a native DEB application from the Ubuntuzilla repository. The main point is that the speed is always slightly faster than the Flatpak package. However, if this looks complex, utilize the Flatpak installation method. 

Of course, the choice of how to approach and what decision to make is entirely up to you. Following the steps outlined in this guide should help you easily install the latest non-ESR version of Firefox on your Debian 11 system. With it, you can enjoy the latest features, improvements, and bug fixes unavailable in the ESR version.

I hope I have been helpful to you with this guide. Any feedback is welcomed in the section below.

Bobby Borisov

Bobby Borisov

Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.

Think You're an Ubuntu Expert? Let's Find Out!

Put your knowledge to the test in our lightning-fast Ubuntu quiz!
Ten questions to challenge yourself to see if you're a Linux legend or just a penguin in the making.

1 / 10

Ubuntu is an ancient African word that means:

2 / 10

Who is the Ubuntu's founder?

3 / 10

What year was the first official Ubuntu release?

4 / 10

What does the Ubuntu logo symbolize?

5 / 10

What package format does Ubuntu use for installing software?

6 / 10

When are Ubuntu's LTS versions released?

7 / 10

What is Unity?

8 / 10

What are Ubuntu versions named after?

9 / 10

What's Ubuntu Core?

10 / 10

Which Ubuntu version is Snap introduced?

The average score is 68%