• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How to Install Firefox as Deb on Ubuntu Linux

How to Install Firefox as Deb on Ubuntu Linux

By Sourabh / January 28, 2024 Category: How To, Ubuntu

Install Firefox as Deb on Ubuntu Linux. Users can install the latest version of Firefox browser – Firefox Version 122.0 on Linux Ubuntu systems via Deb.

Install Firefox .deb package for Debian-based distributions

To install the .deb package through the APT repository on Debian and Ubuntu based systems, do the following:

  1. Create a directory to store APT repository keys if it doesn’t exist: sudo install -d -m 0755 /etc/apt/keyrings
  2. Import the Mozilla APT repository signing key: wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null NOTE If you do not have wget installed, you can install it with: sudo apt-get install wget
  3. The fingerprint should be 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3: gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); print "\n"$0"\n"}'
  4. Next, add the Mozilla APT repository to your sources list: echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
  5. Configure APT to prioritize packages from the Mozilla repository: echo ' Package: * Pin: origin packages.mozilla.org Pin-Priority: 1000 ' | sudo tee /etc/apt/preferences.d/mozilla
  6. Update your package list and install the Firefox .deb package: sudo apt-get update && sudo apt-get install firefox

Import Snap/Flatpak Firefox Profile to Deb

If you were using Snap or Flatpak version of Firefox before, you may wish to import your previous Firefox profile. If you wish to do the same, here’s the way to do this:

Set up Sync. If you are not sure how to do this, you can follow the link here https://support.mozilla.org/en-US/kb/how-do-i-set-sync-my-computer

Now copy the existing files on your computer. Make sure that all copies of Firefox on your computer are completely closed before doing this:

For Flatpak:

mkdir -p ~/.mozilla/firefox/ && cp -a ~/.var/app/org.mozilla.firefox/.mozilla/firefox/* ~/.mozilla/firefox/

For Snap:

mkdir -p ~/.mozilla/firefox/ && cp -a ~/snap/firefox/common/.mozilla/firefox/* ~/.mozilla/firefox/

Once you are done, you can start/open/aunch Firefox from the terminal using the command firefox -P.

Note that you will have to select your desired profile.

Primary Sidebar

Latest Posts

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

© 2025 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap