debian環境設定
- まずは、リストをアップデート
#apt-get update
- wgetのインストール
#apt-get install wget
- ミラーサイト一覧の取得
#wget http://www.debian.or.jp/debian-ftp-mirrors-jp
- 利用するサイトを探す為にnetselectをインストール
#apt-get install netselect
- 速いミラーサイトを探す
#netselect -vv `cat debian-ftp-mirrors-jp`
netselect: unknown host dennou-t.ms.u-tokyo.ac.jp
netselect: unknown host ring.atr.co.jp
Running netselect to choose 1 out of 51 addresses.
...........................................................
www.jp.debian.org 121 ms 13 hops 66% ok ( 6/ 9) [ 416]
www.debian.or.jp 117 ms 13 hops 70% ok ( 7/10) [ 386]
www.dti.ad.jp 15 ms 11 hops 100% ok (10/10) [ 31]
ftp1.debian.or.jp 24 ms 11 hops 100% ok (10/10) [ 50]
dennou-h.ees.hokudai.ac.jp 9999 ms 30 hops 0% ok
ring.edogawa-u.ac.jp 9999 ms 30 hops 0% ok
ring.data-hotel.net 19 ms 8 hops 100% ok (10/10) [ 34]
ring.yamanashi.ac.jp 9999 ms 30 hops 0% ok
dennou-t.ms.u-tokyo.ac.jp 9999 ms 30 hops 0% ok
ring.nihon-u.ac.jp 20 ms 14 hops 66% ok ( 6/ 9) [ 74]
ring.hosei.ac.jp 9999 ms 30 hops 0% ok
ring.riken.jp 9999 ms 30 hops 0% ok
ring.dcs.pref.mie.jp 9999 ms 30 hops 0% ok
ring.wakwak.com 7 ms 15 hops 10% ok ( 1/10) [ 175]
ring.qgpop.net 44 ms 15 hops 66% ok ( 6/ 9) [ 165]
ring.csi.ad.jp 9999 ms 30 hops 0% ok
ring.airnet.ne.jp 17 ms 8 hops 100% ok (10/10) [ 30]
ring.k-opti.com 9999 ms 30 hops 0% ok
ring.maffin.ad.jp 20 ms 13 hops 57% ok ( 4/ 7) [ 82]
maeda.ring.gr.jp 9999 ms 30 hops 0% ok
ring.atr.co.jp 9999 ms 30 hops 0% ok
ring.sakura.ad.jp 24 ms 12 hops 100% ok (10/10) [ 52]
www.nucba.ac.jp 9999 ms 30 hops 0% ok
www.osaka-u.ac.jp 9999 ms 30 hops 0% ok
www.lab.kdd.co.jp 9999 ms 30 hops 0% ok
dennou-k.gaia.h.kyoto-u.ac.jp 9999 ms 30 hops 0% ok
dennou-q.geo.kyushu-u.ac.jp 44 ms 16 hops 66% ok ( 6/ 9) [ 171]
219.121.16.70 9999 ms 30 hops 0% ok
211.129.16.228 13 ms 12 hops 50% ok ( 3/ 6) [ 57]
210.235.130.41 9999 ms 30 hops 0% ok
133.23.250.240 9999 ms 30 hops 0% ok
134.160.82.20 9999 ms 30 hops 0% ok
202.245.159.10 9999 ms 30 hops 0% ok
133.25.251.9 9999 ms 30 hops 0% ok
160.26.2.177 34 ms 14 hops 50% ok ( 3/ 6) [ 163]
www.hiroshima-u.ac.jp 9999 ms 30 hops 0% ok
aist.ring.gr.jp 11 ms 15 hops 10% ok ( 1/10) [ 275]
ring.asahi-net.or.jp 13 ms 6 hops 57% ok ( 4/ 7) [ 35]
ring.fujixerox.co.jp 9999 ms 30 hops 0% ok
ring.jah.ne.jp 9999 ms 30 hops 0% ok
ring.nict.go.jp 9999 ms 30 hops 0% ok
ring.astem.or.jp 34 ms 15 hops 100% ok (10/10) [ 85]
ring.so-net.ne.jp 14 ms 11 hops 57% ok ( 4/ 7) [ 50]
ring.ip-kyoto.ad.jp 9999 ms 30 hops 0% ok
ring.shibaura-it.ac.jp 8 ms 15 hops 10% ok ( 1/10) [ 200]
ring.htcn.ne.jp 9999 ms 30 hops 0% ok
ring.pwd.ne.jp 10 ms 12 hops 25% ok ( 2/ 8) [ 92]
ring.ocn.ad.jp 16 ms 12 hops 50% ok ( 3/ 6) [ 70]
ring.tains.tohoku.ac.jp 28 ms 13 hops 100% ok (10/10) [ 64]
ring.toyama-ix.net 19 ms 12 hops 22% ok ( 2/ 9) [ 191]
ring.toyama-u.ac.jp 32 ms 14 hops 50% ok ( 3/ 6) [ 153]
30 ring.airnet.ne.jp
- これをもとに、ソースリストを編集。
# cd /etc/apt
# vi sources.list
# Stable
<削除>
#deb ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib
#deb ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib
<追加>
deb ftp://ring.asahi-net.or.jp/pub/linux/debian/debian/ stable main contrib
deb ftp://ring.asahi-net.or.jp/pub/linux/debian/debian-non-US/ stable/non-US main contrib# Sources
<削除>
#deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian stable main contrib
#deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US stable/non-US main contrib
<追加>
deb-src ftp://ring.asahi-net.or.jp/pub/linux/debian/debian/ stable main contrib
deb-src ftp://ring.asahi-net.or.jp/pub/linux/debian/debian-non-US/ stable/non-US main contrib
- リストからソースを更新する
# apt-get update
# apt-get upgrade
これでデビアンプロジェクトが提供してくれるアプリケーションアップデートを利用できるようになります。