Tuesday, April 30, 2024
96
rated 0 times [  96] [ 0]  / answers: 1 / hits: 49532  / 2 Years ago, fri, december 3, 2021, 5:18:57

As far as I see in the ongoing development for 22.04 Jammy, Firefox is a Snap package.
The related Deb package in apt is just a shortcut/link to the that snap version.


I prefer my installation not to be from snap packages, since I find them too much 'Ubuntu-specific'.


Are there alternative ways to install Firefox on Jammy?
My favourite option would be an Apt repository or PPA. I will test the Flatpak version with my test virtual machine in the meantime.


More From » package-management

 Answers
2

The other answer by Organic Marble is for Firefox-ESR, and the answer by eddygeek is for the beta version.


This answer is for the latest stable version of Firefox. You can use the Firefox PPA maintained by Mozilla team.


sudo add-apt-repository ppa:mozillateam/ppa

Then, copy and paste the following code in a terminal in one go (don't copy-paste line by line) to prioritize the apt version of firefox over the snap version.


echo '
Package: *
Pin: release o=LP-PPA-mozillateam
Pin-Priority: 1001

Package: firefox
Pin: version 1:1snap1-0ubuntu2
Pin-Priority: -1
' | sudo tee /etc/apt/preferences.d/mozilla-firefox

Next, remove the snap version of firefox


sudo snap remove firefox

Install Firefox with apt.


sudo apt install firefox

To ensure that unattended upgrades do not reinstall the snap version of Firefox, enter the following command. Alternatively, you can turn off unattended upgrades.


echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox



To undo these changes



  1. Remove the firefox PPA.


sudo add-apt-repository -r ppa:mozillateam/ppa


  1. Remove the apt pin.


sudo rm -rf /etc/apt/preferences.d/mozilla-firefox


  1. Remove the apt version and reinstall snap.


sudo apt remove firefox && sudo snap install firefox

Source: OMG Ubuntu


[#712] Friday, December 3, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olfdit

Total Points: 118
Total Questions: 98
Total Answers: 97

Location: Honduras
Member since Fri, Nov 25, 2022
1 Year ago
;