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:
- Create a directory to store APT repository keys if it doesn’t exist:
sudo install -d -m 0755 /etc/apt/keyrings
- 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 havewget
installed, you can install it with:sudo apt-get install wget
- 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"}'
- 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
- 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
- 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.