Skip to content

Commit

Permalink
mozilla: add
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Mar 24, 2024
1 parent 0064a7b commit e957aa9
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ USTC Mirror Help
influxdata
linux.git
mariadb
mozilla
mysql-repo
nix-channels
qtproject
Expand Down
64 changes: 64 additions & 0 deletions source/mozilla.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
===================================
Mozilla Firefox 源使用帮助
===================================

地址
====

https://mirrors.ustc.edu.cn/mozilla/

说明
====

Firefox Deb 包镜像

收录版本
========

AMD64 架构下的最新稳定版、beta、nightly、开发者版本与语言包。

使用说明
========

以下内容参考了 `Install Firefox on Linux <https://support.mozilla.org/en-US/kb/install-firefox-linux#w_install-firefox-deb-package-for-debian-based-distributions>`_
的说明并稍作修改:

1. 创建 keyrings 目录:

::

sudo install -d -m 0755 /etc/apt/keyrings

2. 导入 Mozilla APT 仓库公钥:

::

wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null

3. 验证签名一致性:

::

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

4. 添加镜像仓库:

::

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

5. 设置优先级,避免 Ubuntu 下 snap 版本被优先安装:

::

echo '
Package: *
Pin: release a=mozilla
Pin-Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla

6. 更新并安装:

::

sudo apt-get update && sudo apt-get install firefox

0 comments on commit e957aa9

Please sign in to comment.