Skip to main content

Mozilla Software Repository Mirror Usage Guide

Introduction

This mirror repository provides officially packaged Firefox browser for Debian-based distributions, supporting amd64 and arm64 architectures.

Currently, Debian stable only includes the long-term support version firefox-esr, while Ubuntu's Firefox has switched to Snap packages. Users who need it can use the APT source provided by this repository.

Usage

  1. Create a directory to store APT repository keys if it doesn't exist:
Whether is root user
sudo install -d -m 0755 /etc/apt/keyrings
  1. Import the Mozilla APT repository signing key:
Whether is root user
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null

The fingerprint should be 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3. You may check it with the following command:

gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | awk '/pub/{getline; gsub(/^ +| +$/,""); if($0 == "35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3") print "
The key fingerprint matches ("$0").
"; else print "
Verification failed: the fingerprint ("$0") does not match the expected one.
"}'

If you do not have wget installed, you can install it with:

Whether is root user
sudo apt-get install wget
  1. Next, add the Mozilla APT repository to your sources.list:

For Debian Bookworm and Older:

Whether is root user
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://mirrors.hust.edu.cn/mozilla/ mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null

For Debian Trixie and Newer:

Whether is root user
cat <<EOF | sudo tee /etc/apt/sources.list.d/mozilla.sources
Types: deb
URIs: https://mirrors.hust.edu.cn/mozilla/apt
Suites: mozilla
Components: main
Signed-By: /etc/apt/keyrings/packages.mozilla.org.asc
EOF
  1. Update your package list, and install firefox:
Whether is root user
sudo apt-get update && sudo apt-get install firefox

References

  1. Using Help - Mozilla Firefox
  2. Using Help - TUNA Mirror
Choose your prefered domain
mirrors.hust.edu.cn
This domain is Dual Stack
Enable HTTPS