• 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

How To Check User Permissions In Linux Using Command

Check Which Folder Is Taking More Space In Ubuntu Linux

How to Install Claude Desktop App in Ubuntu Linux

Job Scheduling Using At Command In Linux With Examples

How To Check Permissions Of A Directory In Linux Command

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

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

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