Skip to content

Instantly share code, notes, and snippets.

@uyriq
Created July 10, 2023 18:03
Show Gist options
  • Save uyriq/78e2e22b2bd513e977a95a8352a26c9f to your computer and use it in GitHub Desktop.
Save uyriq/78e2e22b2bd513e977a95a8352a26c9f to your computer and use it in GitHub Desktop.
from snap to deb ppa firefox switch
# Step 1: Remove the Firefox Snap by running the following command in a new Terminal window:
sudo snap remove firefox
# Step 2: Add the (Ubuntu) Mozilla team PPA to your list of software sources by running the following command in the same Terminal window:
sudo add-apt-repository ppa:mozillateam/ppa
# Step 3: Next, alter the Firefox package priority to ensure the PPA/deb/apt version of Firefox is preferred. This can be done using a slither of code from FosTips (copy and paste it whole, not line by line):
echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox
# Step 4: Since you’ll (hopefully) want future Firefox upgrades to be installed automatically, Balint Reczey shares a concise command on his blog that ensures it happens:
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
# Step 5: Finally, install Firefox via apt by running this command:
sudo apt install firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment