Script for forcing apt/deb firefox over snap
This commit is contained in:
parent
2f7f1e9027
commit
9a2e26a618
22
provisioners/install-firefox.sh
Executable file
22
provisioners/install-firefox.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Reference:https://askubuntu.com/questions/1399383/how-to-install-firefox-as-a-traditional-deb-package-without-snap-in-ubuntu-22
|
||||||
|
# Install firefox as a .deb
|
||||||
|
|
||||||
|
add-apt-repository -y ppa:mozillateam/ppa
|
||||||
|
|
||||||
|
echo '
|
||||||
|
Package: *
|
||||||
|
Pin: release o=LP-PPA-mozillateam
|
||||||
|
Pin-Priority: 1001
|
||||||
|
|
||||||
|
Package: firefox
|
||||||
|
Pin: version 1:1snap1-0ubuntu2
|
||||||
|
Pin-Priority: -1
|
||||||
|
' | tee /etc/apt/preferences.d/mozilla-firefox
|
||||||
|
|
||||||
|
snap remove firefox
|
||||||
|
apt install -y --allow-downgrades firefox
|
||||||
|
|
||||||
|
|
||||||
|
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
|
||||||
|
#TODO: Fix root certificate trust issues
|
||||||
Loading…
x
Reference in New Issue
Block a user