Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SaicharanKandukuri/1fc487b2430e36dd30c2edbbb344256a to your computer and use it in GitHub Desktop.
Save SaicharanKandukuri/1fc487b2430e36dd30c2edbbb344256a to your computer and use it in GitHub Desktop.
FIrefox No snap ubuntu 21.10+

Based on https://askubuntu.com/questions/1204571/how-to-install-chromium-without-snap

  1. Remove existing firefox
  sudo apt auto remove firefox
  1. Add Debian buster repository. Create a file /etc/apt/sources.list.d/debian.list with the following content:
deb http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian buster-updates main
deb http://deb.debian.org/debian-security buster/updates main

Add the Debian signing keys:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A

Configure apt pinning. Create a file /etc/apt/preferences.d/firefox.pref with the following content:

# Note: 2 blank lines are required between entries
Package: *
Pin: release a=eoan
Pin-Priority: 500


Package: *
Pin: origin "ftp.debian.org"
Pin-Priority: 300


Package: firefox*
Pin: origin "ftp.debian.org"
Pin-Priority: 700

Install firefox again

sudo apt update
sudo apt install firefox -y

so conclusion is just replace chromium with firefox ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment