• 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 / Install Mozilla Firefox As Deb In Ubuntu Terminal Without Snap

Install Mozilla Firefox As Deb In Ubuntu Terminal Without Snap

By Sourabh / December 9, 2024 Category: How To, Ubuntu

Download Firefox deb file for Ubuntu and install Mozilla Firefox as DEB in Ubuntu Terminal.

Step 1: Create an APT keyring directory to store APT repository keys if it doesn’t exist on your system:

sudo install -d -m 0755 /etc/apt/keyrings

Step 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: The fingerprint should be 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3. You may check it with the following command:

gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3") print "\nThe key fingerprint matches ("$0").\n"; else print "\nVerification failed: the fingerprint ("$0") does not match the expected one.\n"}'

Step 3: Add the Mozilla signing key 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

Step 4: Configure APT to prioritize packages from the Mozilla repository. You can set the Firefox package priority to ensure Mozilla’s DEB version is always the default one:

echo '
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla

Step 5: Finally, you can use APT to install the Firefox DEB in Ubuntu:

sudo apt update && sudo apt install firefox

Step 6: Set up different languages in Firefox with .deb files

For those of you who would like to use Firefox in a different language than American English, we have also created .deb packages containing the Firefox language packs. To install a specific language pack, replace fr in the example below with the desired language code:

sudo apt-get install firefox-l10n-fr

To list all the available language packs, you can use this command after adding the Mozilla APT repository and running sudo apt-get update:

apt-cache search firefox-l10n

Import you Firefox Profile

If you want to import your profile, there are two ways to do this:

Method 1: Set up Sync. You will need a Mozilla account to enable Sync. Once you have created a Mozilla account, open Firefox on the computer or profile you want to sync. Click the menu button, then click the Sign In button next to Sync and save data and sign in. Finally, click Sync Now to start syncing immediately.

Method 2: Copy the existing files:

Flatpak:

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

Snap:

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

Once you’ve moved the profiles, launch Firefox from the terminal with the command firefox -P and 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