多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 1.准备 准备一台虚拟机或者物理机作为源服务器(Ubuntu或银河麒麟都可) ### 1.1.下载工具 ``` apt-get install apt-mirror ``` ### 1.2.配置下载源地址 ~~~ vim /etc/apt/mirror.list ~~~ 配置: ~~~text # 主目录 set base_path /var/spool/apt-mirror # 镜像文件下载目录 # set mirror_path $base_path/mirror # 临时索引下载文件目录,既存放软件仓库的dists目录下的文件,默认 # set skel_path $base_path/skel # 配置日志,默认 # set var_path $base_path/var # clean脚本 # set cleanscript $var_path/clean.sh # 架构配置,参数:i386/amd64/arm64,默认下载本机相同的架构的源,如果为别的架构下载, #这里是为了下载飞腾1500服务器的源,需要指定arm64 set defaultarch arm64 # set postmirror_script $var_path/postmirror.sh # set run_postmirror 0 # 下载最大线程数 set nthreads 20 set _tilde 0 # 配置下载源的地址,这里是银河麒麟的各个源地址(查看银行麒麟版本命令:cat /etc/.kyinfo) # 银河麒麟官网源地址:http://archive.kylinos.cn/kylin/KYLIN-ALL/ #4.0.2桌面版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2-desktop main restricted universe multiverse #4.0.2-sp1桌面版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp1-desktop main restricted universe multiverse #4.0.2-sp2桌面版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp2-desktop main restricted universe multiverse #4.0.2服务器版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2-server main restricted universe multiverse #4.0.2-sp1服务器版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp1-server main restricted universe multiverse #4.0.2-sp2服务器版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp2-server main restricted universe multiverse #4.0.2-sp2 FT2000+服务器版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp2-server-ft2000 main restricted universe multiverse #4.0.2-sp3桌面版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp3-desktop main restricted universe multiverse #4.0.2-sp3服务器版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp3-server main restricted universe multiverse #4.0.2-sp4桌面版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp4-desktop main restricted universe multiverse #10.0版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.0 main restricted universe multiverse #10.1版本: #deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 main restricted universe multiverse clean http://archive.kylinos.cn/kylin/KYLIN-ALL ~~~ ## 3.启动下载 ``` apt-mirror ```