Ubuntu mirror 可用源

1:加下面的行到/etc/apt/sources.listdeb apt-mirror/

2:apt-get update

3:apt-get install apt-mirror

4:根据需要修改/etc/apt/mirror.list,添加离你最近的源

############# config #################### set base_path /var/spool/apt-mirror## if you change the base path you must create the directories below with write privlages## set mirror_path $base_path/mirror# set skel_path $base_path/skel# set var_path $base_path/var# set cleanscript $var_path/clean.sh# set defaultarch set nthreads 20set _tilde 0############## end config ##############

deb etch main contrib non-freedeb-src etch main contrib non-free

deb etch/updates main contrib non-freedeb-src etch/updates main contrib non-free

#deb hardy main restricted universe multiverse#deb hardy-updates main restricted universe multiverse##deb hardy-backports main restricted universe multiverse#deb hardy-security main restricted universe multiverse##deb hardy-proposed main restricted universe multiverse##deb-src hardy main restricted universe multiverse#deb-src hardy-updates main restricted universe multiverse##deb-src hardy-backports main restricted universe multiverse#deb-src hardy-security main restricted universe multiverse##deb-src hardy-proposed main restricted universe multiverse

clean

## deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ – Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main

5:获得源信息su apt-mirror -c apt-mirror可能会报错:“jumping:~# su apt-mirror -c apt-mirrorDownloading 30 index files using 20 threads…Begin time: Fri Aug 29 11:38:38 2008[20]… [19]… [18]… [17]… [16]… [15]… [14]… [13]… [12]… [11]… [10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]…End time: Fri Aug 29 11:40:49 2008

Proceed indexes: [Ssh: debian.cn99.com/debian///dists/etch/main/source/Sources.gz: No such file or directoryapt-mirror: can’t open index in proceed_index_gz at /usr/bin/apt-mirror line 382.

”到/var/spool/apt-mirror/skel/debian.cn99.com/debian/dists/etch/main/source/目录下去看看有没有Sources.gz。没有的话,再执行一遍su apt-mirror -c apt-mirror直到有为止。

正确的输出应该是:jumping:# su apt-mirror -c apt-mirrorDownloading 30 index files using 20 threads…Begin time: Fri Aug 29 11:53:32 2008[20]… [19]… [18]… [17]… [16]… [15]… [14]… [13]… [12]… [11]… [10]… [9]… [8]… [7]… [6]… [5]… [4]… [3]… [2]… [1]… [0]…End time: Fri Aug 29 11:54:27 2008

Proceed indexes: [SSPP]

30.1 GiB will be downloaded into archive.Downloading 51528 archive files using 20 threads…Begin time: Fri Aug 29 11:54:33 2008[20]…

6:部署apache,,提供给其他用户使用该源(参考网上的文章)

朋友,旭日正在升起,每一份付出,

Ubuntu mirror 可用源

相关文章:

你感兴趣的文章:

标签云: