初期設定 : APT リポジトリを設定する2025/08/11 |
|
[apt] コマンドでパッケージのインストールやアップデート等々を実行する際に参照される APT リポジトリを設定します。 |
|
| [1] | DVD メディアから Debian をインストールした場合は、DVD メディアがリポジトリの参照先に設定されますが、DVD を取り出して設定が不要な場合は、設定を変更しておきます。 |
|
root@localhost:~#
vi /etc/apt/sources.list # DVD ソースはコメントにして ネットワークソースを追記 # deb cdrom:[Debian GNU/Linux 13.0.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware 20250809-11:21]/ trixie contrib main non-free-firmware
deb http://deb.debian.org/debian/ trixie main non-free-firmware
# コメントになっている場合は # コメント解除して [security] リポジトリを有効化 deb http://security.debian.org/debian-security trixie-security main non-free-firmware # コメントになっている場合は # コメント解除して [updates] リポジトリを有効化 deb http://deb.debian.org/debian/ trixie-updates main non-free-firmware |
| [2] | Backports リポジトリを追加しておきます。 ⇒ https://backports.debian.org/Instructions/ |
|
root@localhost:~#
vi /etc/apt/sources.list # 最終行に追記 deb http://deb.debian.org/debian/ trixie-backports main non-free-firmware |
| [3] | リポジトリの追加や変更を行った際は、リストをアップデートしておきます。 |
|
root@localhost:~# apt update Get:1 http://deb.debian.org/debian trixie InRelease [138 kB] Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.1 kB] Get:3 http://deb.debian.org/debian trixie-backports InRelease [53.3 kB] Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9,668 kB] Get:5 http://security.debian.org/debian-security trixie-security InRelease [43.4 kB] Get:6 http://deb.debian.org/debian trixie/main Translation-en [6,484 kB] Get:7 http://security.debian.org/debian-security trixie-security/main amd64 Packages [5,304 B] Get:8 http://security.debian.org/debian-security trixie-security/main Translation-en [6,724 B] Get:9 http://deb.debian.org/debian trixie/non-free-firmware amd64 Packages [6,868 B] Get:10 http://deb.debian.org/debian trixie/non-free-firmware Translation-en [4,704 B] Get:11 http://deb.debian.org/debian trixie-updates/main amd64 Packages [2,432 B] Get:12 http://deb.debian.org/debian trixie-updates/main Translation-en [396 B] Fetched 16.5 MB in 2s (9,239 kB/s) All packages are up to date. |
| Sponsored Link |
|
|