I am using Ubuntu 24.04 and would like to install Firefox directly from the official Mozilla repository instead of the default Ubuntu Snap/PPA repositories.
1 Answers
To install Firefox from the official Mozilla repository on Ubuntu 24.04, follow these steps:
Install the repository key:
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | gpg --dearmor | sudo tee /etc/apt/keyrings/packages.mozilla.org.gpg > /dev/nullCreate a deb822-formatted .sources file in
/etc/apt/sources.list.d/mozilla.sourceswith the following content:Types: deb URIs: https://packages.mozilla.org/apt Suites: mozilla Components: main Signed-By: /etc/apt/keyrings/packages.mozilla.org.gpgSet the apt repository priority by creating/editing the file
/etc/apt/preferences.d/mozillawith the following content:Package: firefox* Pin: origin packages.mozilla.org Pin-Priority: 1001Allow unattended upgrades for the mozilla repository by creating/editing the file
/etc/apt/apt.conf.d/51unattended-upgrades-firefoxwith the following content:Unattended-Upgrade::Origins-Pattern { "archive=mozilla"; };Remove the snap and apt installation of Firefox:
sudo snap remove firefox sudo apt remove firefoxUpdate the package list:
sudo apt updateInstall Firefox from the Mozilla repository:
sudo apt install firefox(Optional) Install additional translations with the packages
firefox-l10n-XXwhere XX is the language identifier (e.g.firefox-l10n-itfor Italian).sudo apt install firefox-l10n-XX
By following these steps, you should have Firefox installed from the official Mozilla repository on your Ubuntu 24.04 system.
- 1,124