Debian で non-free-firmware というコンポーネントが増えることになり,実際に移動し始めたとのことで利用できるように設定しました.
/etc/apt/sources.list
を編集します.直に編集することも出来ますが, apt edit-sources
を使うと保存時に文法チェックをしてくれるのでおすすめです.
$ sudo apt edit-source
編集例
$ sudo git -C /etc diff /etc/apt/sources.list diff --git a/apt/sources.list b/apt/sources.list index d9af843..11f6837 100644 --- a/apt/sources.list +++ b/apt/sources.list @@ -2,8 +2,8 @@ #deb cdrom:[Debian GNU/Linux testing _Bookworm_ - Official Snapshot amd64 DVD Binary-1 20220919-00:24]/ bookworm contrib main -deb http://deb.debian.org/debian/ bookworm main contrib non-free -deb-src http://deb.debian.org/debian/ bookworm main contrib non-free +deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware +deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware #deb http://security.debian.org/debian-security bookworm-security main contrib #deb-src http://security.debian.org/debian-security bookworm-security main contrib @@ -13,13 +13,13 @@ deb-src http://deb.debian.org/debian/ bookworm main contrib non-free # are provided as examples, but you should amend them as appropriate # for your mirror of choice. # -deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free -deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free +deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware +deb-src http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware # bookworm-backports, previously on backports.debian.org # A network mirror was not selected during install. The following entries # are provided as examples, but you should amend them as appropriate # for your mirror of choice. # -deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free -deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free +deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware +deb-src http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
apt update
コマンドでパッケージリストを更新, apt upgrade
コマンドでパッケージを最新にします.
$ sudo apt update $ sudo apt upgrade
早速 non-free-firmware
から firmware-iwlwifi
が降ってきました.
取得:1 http://deb.debian.org/debian bookworm/non-free-firmware amd64 firmware-iwlwifi all 20221214-5 [20.5 MB]
今回 bookworm(testing) で設定しましたが,sid(unstable) の場合も同様だと思います.
環境
$ lsb_release -a Distributor ID: Debian Description: Debian GNU/Linux bookworm/sid Release: n/a Codename: bookworm $ dpkg-query -W apt dpkg apt 2.5.5 dpkg 1.21.19 $ arch x86_64
追記) Bookworm 新規インストールの場合
non-free-firmware
が有効になった Debian-Installer Bookworm Alpha 2
が出たので少し試してみました.
パッケージマネージャの設定で,「non-free のファームウェアを使用しますか?」で「はい」を選択することで, source.list
に non-free-firmware
が設定されるのを確認しました.