google query
install mozilla repository ubuntu
To install Mozilla's official APT repository and get the native
.deb version of Firefox on Ubuntu (bypassing the default Snap package), create a keyrings directory, import Mozilla’s GPG key, add the repository source, configure package priority pinning, and install using apt. Follow the detailed instructions provided by Mozilla Support to set this up safely. [1, 2]Remove Snap and Block Resubmission
- Remove the existing Firefox snap package:
sudo snap remove firefox - Block Ubuntu from reinstalling the Snap via the transitional package:
sudo tee /etc/apt/preferences.d/mozilla > /dev/null << EOFPackage: firefoxPin: release o=UbuntuPin-Priority: -1EOF[1]
Add Mozilla's Official Repository
- Create the keyrings directory:
sudo install -d -m 0755 /etc/apt/keyrings
- Import the signing key:
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
Prioritize and Install
- Set high priority for Mozilla's repository:
sudo tee /etc/apt/preferences.d/mozilla-priority > /dev/null << EOFPackage: *Pin: origin packages.mozilla.orgPin-Priority: 1000EOF
--30--