Skip to content

Instantly share code, notes, and snippets.

@Steve-Mr
Forked from jc00ke/firefox-snap-to-deb.sh
Created October 21, 2022 03:55
Show Gist options
  • Select an option

  • Save Steve-Mr/5b077ae00e417db1ea41960a3108b5a0 to your computer and use it in GitHub Desktop.

Select an option

Save Steve-Mr/5b077ae00e417db1ea41960a3108b5a0 to your computer and use it in GitHub Desktop.
Migrate Firefox from snap back to deb on Ubuntu Jammy+
#!/bin/env bash
sudo snap remove firefox
sudo add-apt-repository ppa:mozillateam/ppa
echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001
' | sudo tee /etc/apt/preferences.d/mozilla-firefox
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
sudo apt install firefox
# consider the ramifications of the following line and uncomment if you want
# mv ~/snap/firefox/common/.mozilla/firefox ~/.mozilla/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment