Firefox Installation Guide
Mozilla Firefox is the default web browser for most Linux distributions, including Ubuntu. However, depending on your needs (performance, sandboxing, or specific versions), you might want to install it using different methods.
1. The Default Method (Snap)
Since Ubuntu 22.04, Firefox is installed as a Snap package by default. This ensures you always have the latest security updates directly from Mozilla, sandboxed from the rest of your system.
- Check if installed:
snap list firefox - Install/Reinstall:
sudo snap install firefox
2. The Traditional Method (APT/Debian)
Some users prefer the classic .deb package because it starts up faster than Snap and integrates better with custom themes.
- Note: Ubuntu has made this harder recently, as
apt install firefoxoften just redirects to the Snap version. To get the true.debversion, you must add the Mozilla Team PPA.
- Add the PPA:
sudo add-apt-repository ppa:mozillateam/ppa - Prioritize the PPA:
You need to tell Ubuntu to prefer this PPA over the Snap store.
echo ' Package: * Pin: release o=LP-PPA-mozillateam Pin-Priority: 1001 ' | sudo tee /etc/apt/preferences.d/mozilla-firefox - Install:
sudo apt update && sudo apt install firefox
3. The Community Method (Flatpak)
If you use Flatpaks for other apps, the Flatpak version of Firefox is excellent. It offers strict privacy sandboxing like Snap but is often faster.
- Reference: Mastering the Ubuntu App Store (Ensure Flatpak is set up).
- Install Command:
flatpak install flathub org.mozilla.firefox
4. Verification
To confirm which version you are running, go to Settings -> Help -> About Firefox. If you sign in to Firefox Sync, your bookmarks and passwords will transfer regardless of the installation method used.