All
IIJ方面からのapt設定
私の利用しているCATV(CTY)のインターネットサービスは、IIJのサブネットになっている。aptを利用する場合、IIJ方面から近いミラーサイトを指定するのがよろしい。
netselectで、日本のミラーサイトから最も近いサイトを探す。いわば、tracerouteにサイト間の比較機能をつけたもの、ですね。
$ wget http://www.debian.or.jp/debian-ftp-mirrors-jp $ netselect -vv `cat debian-ftp-mirrors-jp`
この結果、ftp.dti.ad.jpが14 hopsで最も近いことが分かった。ftp.jp.debian.orgも14 hopsでかなり近い。
ftp://ftp.iij.ad.jpは当然ながら11 hopsと近いので、ftp://ftp.iij.ad.jpにミラーされているコンテンツはIIJから、それ以外はftp://ftp.dti.ad.jp ftp://ftp.jp.debian.orgから取得することにした。
sources.listの雛形として、sources.list.ftp.ftp.dti.ad.jpをいただいてきて、sources.listというファイル名で保存し、以下のように編集した。
deb ftp://ftp.iij.ad.jp/pub/linux/debian stable main contrib non-free deb ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib non-free deb ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib non-free deb ftp://ftp.dti.ad.jp/pub/Linux/debian-jp stable-jp main contrib non-free deb ftp://ftp.jp.debian.org/debian stable main contrib non-free deb ftp://ftp.jp.debian.org/debian-non-US stable/non-US main contrib non-free deb ftp://ftp.jp.debian.org/debian-jp stable-jp main contrib non-free deb ftp://ftp.iij.ad.jp/pub/linux/debian proposed-updates main contrib non-free deb ftp://ftp.dti.ad.jp/pub/Linux/debian proposed-updates main contrib non-free deb ftp://ftp.jp.debian.org/debian proposed-updates main contrib non-free deb http://security.debian.org/ stable/updates main contrib non-free deb-src ftp://ftp.iij.ad.jp/pub/linux/debian stable main contrib non-free deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib non-free deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib non-free deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian-jp stable-jp main contrib non-free deb-src ftp://ftp.jp.debian.org/debian stable main contrib non-free deb-src ftp://ftp.jp.debian.org/debian-non-US stable/non-US main contrib non-free deb-src ftp://ftp.jp.debian.org/debian-jp stable-jp main contrib non-free
rootになって、作成したsources.listを/etc/apt以下にコピーする。その後、apt-get updateを実行すると、めでたくパッケージのリストが取得される。
2005-04-23_14:41-tyada
Related
Local search for: IIJ方面からのapt設定
No related items.TrackBack
トラックバック
このエントリにトラックバックはありません
このトラックバックURLを使ってこの記事にトラックバックを送ることができます。
もしあなたのブログがトラックバック送信に対応していない場合にはこちらのフォームからトラックバックを送信することができます。.
No comments yet

