Skip to content

Instantly share code, notes, and snippets.

@robertkirkman
Created July 5, 2022 20:12
Show Gist options
  • Save robertkirkman/6975e42191b8c39f0b91be4a08cc0d08 to your computer and use it in GitHub Desktop.
Save robertkirkman/6975e42191b8c39f0b91be4a08cc0d08 to your computer and use it in GitHub Desktop.
Normal Pills for Ubuntu
#!/bin/bash
# replaces default Ubuntu 22.04 snap firefox with a
# mozilla official beta firefox ppa that does not
# mark snapd as any of its dependencies
# run as root
snap remove firefox
snap remove snap-store gnome-3-38-2004 gtk-common-themes
snap remove snapd-desktop-integration
snap remove core20
snap remove bare
snap remove snapd
systemctl disable --now snapd.service snapd.socket
apt-get purge snapd
add-apt-repository ppa:mozillateam/firefox-next
cat <<EOF | tee /etc/apt/preferences.d/pin-mozilla-ppa
Package: *
Pin: release o=LP-PPA-mozillateam-firefox-next
Pin-Priority: 9999
EOF
apt-get update
apt-get upgrade -y
apt-get install -y firefox
@robertkirkman
Copy link
Author

just tested on Ubuntu 23.10, still works more or less the same, errors spurious, snap gone, firefox working

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