Ubuntu12.04搭建自有源
其实,这个工作比较简单,主要两步:apt-mirror和apache。(这里的系统是ubuntu12.04)
1、apt-mirror
1.1 安装
一如既往地简单,直接sudo apt-get install apt-mirror即可。
1.2 配置apt-mirror
$ sudo vim /etc/apt/mirror.list
$ sudo apt-mirrorDownloading 140 index files using 20 threads...Begin time: Fri Nov 1 17:23:49 2013[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Fri Nov 1 17:23:49 2013Proceed indexes: [SSSSSPPPPP]93.0 GiB will be downloaded into archive.Downloading 85303 archive files using 20 threads...Begin time: Fri Nov 1 17:23:55 2013[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]... End time: Fri Nov 1 18:12:35 20130.0 bytes in 0 files and 0 directories can be freed.Run /var/spool/apt-mirror/var/clean.sh for this purpose.Running the Post Mirror script ...(/var/spool/apt-mirror/var/postmirror.sh)Post Mirror script has completed. See above output for any possible errors.