最近因为要安装一个软件,发现阿里云的源都没有了,我这边用的Centos5,然后现在似乎是过期了。国内很多镜像源都没有centos5的。
然后才想起要折腾一个本地源只
centos的话,直接rsync就好了。
cat /etc/apt/mirror.list # # # # # # # # # # # # #,config # # # # # # # # # # # # # # # # # # # set base_path ,,/local_home/镜子/ubuntu # #,set mirror_path $ base_path/镜子 #,set skel_path ,, $ base_path/skel #,set var_path ,,, base_path美元/var #,set cleanscript  var_path/clean.sh美元 #,set defaultarch , & lt; running host architecture> #,set postmirror_script  var_path/postmirror.sh美元 #,set run_postmirror 0 set nthreads ,,, 20 set _tilde 0 set limit_rate 3072 k , #限制速度 # # # # # # # # # # # # # #,最终获得config # # # # # # # # # # # # # # #,精确 deb http://mirrors.aliyun.com/ubuntu precise  main restricted  universe 多元宇宙 deb http://mirrors.aliyun.com/ubuntu precise-security  main restricted  universe 多元宇宙 deb http://mirrors.aliyun.com/ubuntu precise-updates  main restricted  universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu  precise-proposed main  restricted universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu  precise-backports main  restricted universe 多元宇宙 #,可靠的 deb http://mirrors.aliyun.com/ubuntu/ trusty  main restricted  universe 多元宇宙 deb http://mirrors.aliyun.com/ubuntu/ trusty-security  main restricted  universe 多元宇宙 deb http://mirrors.aliyun.com/ubuntu/ trusty-updates  main restricted  universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu/  trusty-proposed main  restricted universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu/  trusty-backports main  restricted universe 多元宇宙 #,xenial 这个版本虽然只有amd64的服务器,,但也要加上i386的。要不没办法更新,会提示 艾凡:#还以为,Unable 用locate package 软件名 deb http://mirrors.aliyun.com/ubuntu/ xenial  main restricted  universe 多元宇宙 deb http://mirrors.aliyun.com/ubuntu/ xenial-security  main restricted  universe 多元宇宙 deb http://mirrors.aliyun.com/ubuntu/ xenial-updates  main restricted  universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu/  xenial-proposed main  restricted universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu/  xenial-backports main  restricted universe 多元宇宙 deb-i386 http://mirrors.aliyun.com/ubuntu/ xenial  main restricted  universe 多元宇宙 deb-i386 http://mirrors.aliyun.com/ubuntu/ xenial-security  main restricted  universe 多元宇宙 deb-i386 http://mirrors.aliyun.com/ubuntu/ xenial-updates  main restricted  universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu/  xenial-proposed main  restricted universe 多元宇宙 # deb http://mirrors.aliyun.com/ubuntu/  xenial-backports main  restricted universe 多元宇宙 clean http://mirrors.aliyun.com/ubuntu # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #码头工人 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # deb-amd64 https://apt.dockerproject.org/repo ubuntu-xenial 主要 clean https://apt.dockerproject.orgUbuntu及Centos本地镜像服务器