Mozilla のAPT リポジトリでFirefox を利用

先日開催された「鹿児島Linux勉強会 2024.02(オンライン開催) 🏛️」でYamano さんの発表で知ったのですが,Mozilla がDebian ベールのディストリビューション向けにAPT リポジトリが提供されているそうです.

これを試してみました.

Mozilla は Firefox 122 🏛️ から apt リポジトリでの提供 🏛️を開始したので、これを用いることにします。 (昨年 11 月ごろから Nightly は提供していたらしい)

基本的にDebian bookworm amd64, sid amd64 環境で以下のMozilla の文章の通りに行いました.

$ sudo install -d -m 0755 /etc/apt/keyrings (1)
$ wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc (2)
$ 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"}' (3)
$ echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list (4)
$ echo '
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla (5)
$ sudo apt update (6)
$ sudo apt install firefox firefox-l10n-ja (7)
  1. APT リポジトリ鍵格納ディレクトリを作成
  2. Mozilla APTリポジトリの署名鍵を取得
  3. 鍵指紋が 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3 なのを確認
  4. Mozilla APTリポジトリをsource.list に登録
  5. Debian よりMozilla リポジトリを優先するようAPT Pin を立てる
  6. パッケージ情報の更新
  7. Firefox と日本語言語パックを導入

起動するとFirefox 122.0.1 が起動してきました :)

firefox 122

これまで ~/.local/bin/ 以下に最新版を入れていたのでこれは消すことにします.

$ ls -l `which firefox`
lrwxrwxrwx 1 matoken matoken 40 Jul 13  2023 /home/matoken/bin/firefox -> /home/matoken/.local/bin/firefox/firefox

そして,今日apt update && apt upgrade したらFirefox 123.0 が降ってきました.

$ dpkg-query -W firefox
firefox 123.0~build3
$ apt show firefox
Package: firefox
Version: 123.0~build3
Priority: optional
Section: web
Maintainer: Mozilla Releng <release@mozilla.com>
Installed-Size: 252 MB
Depends: libasound2 (>= 1.0.16), libatk1.0-0 (>= 1.12.4), libc6 (>= 2.17), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.10.0), libdbus-1-3 (>= 1.5.12), libfontconfig1 (>= 2.11), libfreetype6 (>= 2.3.5), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.37.0), libgtk-3-0 (>= 3.13.7), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libstdc++6 (>= 4.8), libx11-6, libx11-xcb1, libxcb-shm0, libxcb1, libxcomposite1 (>= 1:0.3-1), libxcursor1 (>> 1.1.2), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxi6, libxrandr2 (>= 2:1.4.0), libxrender1
Download-Size: 68.0 MB
APT-Sources: https://packages.mozilla.org/apt mozilla/main amd64 Packages
Description: Mozilla Firefox

N: There are 3 additional records. Please use the '-a' switch to see them.

もともと入っていたDebian 公式リポジトリの firefox-esr との共存もできていました.でもこれもMozilla の方にしたほうがいいかな?

$ dpkg-query -f='${binary:Package} ${Version}\t${Maintainer}\n' -W firefox*
firefox 122.0.1~build1  Mozilla Releng <release@mozilla.com>
firefox-esr 115.7.0esr-1        Maintainers of Mozilla-related packages <team+pkg-mozilla@tracker.debian.org>
firefox-esr-l10n-ja 115.7.0esr-1        Maintainers of Mozilla-related packages <team+pkg-mozilla@tracker.debian.org>
firefox-l10n-ja 122.0.1~build1  Mozilla Releng <release@mozilla.com>

他に firefox-beta, firefox-devedition, firefox-nightly もあるようです.
archtecture は x86_64, i686 で arm などは無さそう.arm64 あたりは欲しい気がします.

環境
$ dpkg-query -f='${binary:Package} ${Version}\t${Maintainer}\n' -W firefox* apt
apt 2.7.12      APT Development Team <deity@lists.debian.org>
firefox 123.0~build3    Mozilla Releng <release@mozilla.com>
firefox-esr 115.8.0esr-1        Maintainers of Mozilla-related packages <team+pkg-mozilla@tracker.debian.org>
firefox-esr-l10n-ja 115.8.0esr-1        Maintainers of Mozilla-related packages <team+pkg-mozilla@tracker.debian.org>
firefox-l10n-ja 123.0~build3    Mozilla Releng <release@mozilla.com>
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux trixie/sid
Release:        n/a
Codename:       trixie
$ arch
x86_64
環境2
$ dpkg-query -f='${binary:Package} ${Version}\t${Maintainer}\n' -W firefox* apt
apt 2.6.1       APT Development Team <deity@lists.debian.org>
firefox 123.0~build3    Mozilla Releng <release@mozilla.com>
firefox-esr 115.7.0esr-1~deb12u1        Maintainers of Mozilla-related packages <team+pkg-mozilla@tracker.debian.org>
firefox-esr-l10n-ja 115.7.0esr-1~deb12u1        Maintainers of Mozilla-related packages <team+pkg-mozilla@tracker.debian.org>
firefox-l10n-ja 123.0~build3    Mozilla Releng <release@mozilla.com>
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
$ arch
x86_64

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)