• 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

Downlaod Ubuntu 26.10 Stonking Stingray

How To Shutdown Linux With A 15 Minute Delay And Message

Using Linux Terminal How To Get Total Disk Size In GB

Count And Find Number Of Files In A Linux Directory Using Command

Check How Many Users Are Created In Linux Ubuntu

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

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

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