Monday, August 17, 2026

install mozilla repository ubuntu

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 << EOF
    Package: firefox
    Pin: release o=Ubuntu
    Pin-Priority: -1
    EOF
    [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
  • Add the repository to your sources list:
    echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee /etc/apt/sources.list.d/mozilla.list > /dev/null
    [1, 2]
Prioritize and Install
  • Set high priority for Mozilla's repository:
    sudo tee /etc/apt/preferences.d/mozilla-priority > /dev/null << EOF
    Package: *
    Pin: origin packages.mozilla.org
    Pin-Priority: 1000
    EOF
  • Update and install Firefox:
    sudo apt update && sudo apt install firefox
    [1, 2]


--30--

No comments:

Post a Comment