############# config ################## # #数据基目录 # set base_path /var/spool/apt-mirror # #镜像存储位置 # set mirror_path $base_path/mirror #临时下载索引位置 # set skel_path $base_path/skel #URLs和MD5校验信息存储位置 # set var_path $base_path/var #清除废弃包脚本地址 # set cleanscript $var_path/clean.sh #默认下载的OS架构 像amd64这种的 # set defaultarch <running host architecture> #这个脚本是运行必需的 # set postmirror_script $var_path/postmirror.sh # set run_postmirror 0 #设置下载线程数 set nthreads 20 set _tilde 0 # ############# end config ##############
#简单来说就是 #deb 地址/os 版本号 后面那些好像就是os里面的文件夹 #个人比较喜欢用上海交通大学的镜像源 deb https://mirror.sjtu.edu.cn/ubuntu jammy main restricted universe multiverse deb https://mirror.sjtu.edu.cn/ubuntu jammy-security main restricted universe multiverse deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates main restricted universe multiverse deb https://mirror.sjtu.edu.cn/ubuntu jammy-proposed main restricted universe multiverse deb https://mirror.sjtu.edu.cn/ubuntu jammy-backports main restricted universe multiverse
deb-src https://mirror.sjtu.edu.cn/ubuntu jammy main restricted universe multiverse deb-src https://mirror.sjtu.edu.cn/ubuntu jammy-security main restricted universe multiverse deb-src https://mirror.sjtu.edu.cn/ubuntu jammy-updates main restricted universe multiverse deb-src https://mirror.sjtu.edu.cn/ubuntu jammy-proposed main restricted universe multiverse deb-src https://mirror.sjtu.edu.cn/ubuntu jammy-backports main restricted universe multiverse