2023-09-15 12:44:50 +08:00
|
|
|
|
/** ------------------------------------------------------------
|
2024-06-11 20:18:02 +08:00
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
* -------------------------------------------------------------
|
2024-11-22 07:02:21 +08:00
|
|
|
|
* File Name : mirror.c
|
2024-10-29 02:06:01 +08:00
|
|
|
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
|
|
|
|
* | Heng Guo <2085471348@qq.com>
|
2024-06-21 01:47:28 +08:00
|
|
|
|
* Contributors : Shengwei Chen <414685209@qq.com>
|
|
|
|
|
* |
|
2024-09-26 19:51:55 +08:00
|
|
|
|
* Created On : <2023-08-29>
|
2024-12-07 22:08:50 +08:00
|
|
|
|
* Last Modified : <2024-12-07>
|
2023-09-15 12:44:50 +08:00
|
|
|
|
*
|
2024-11-21 14:59:05 +08:00
|
|
|
|
* 通用镜像站
|
2023-09-15 12:44:50 +08:00
|
|
|
|
* ------------------------------------------------------------*/
|
|
|
|
|
|
2024-09-29 12:53:10 +08:00
|
|
|
|
#define Big_File_ubuntu "/24.04/ubuntu-24.04.1-desktop-amd64.iso" // 5.8 GB
|
|
|
|
|
#define Big_File_ctan "/systems/texlive/Images/texlive.iso" // 4.8 GB
|
|
|
|
|
#define Big_File_archlinux "/iso/latest/archlinux-x86_64.iso" // 800 MB
|
|
|
|
|
#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4 GB
|
2023-09-15 12:44:50 +08:00
|
|
|
|
|
2023-09-27 15:13:59 +08:00
|
|
|
|
/**
|
|
|
|
|
* 教育网镜像
|
|
|
|
|
*
|
2024-09-29 12:53:10 +08:00
|
|
|
|
* @sync https://github.com/RubyMetric/chsrc/wiki
|
|
|
|
|
*
|
|
|
|
|
* Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
|
2023-09-27 15:13:59 +08:00
|
|
|
|
*/
|
2024-11-22 11:43:18 +08:00
|
|
|
|
MirrorSite_t MirrorZ =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Tuna =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"tuna", "TUNA", "清华大学开源软件镜像站", "https://mirrors.tuna.tsinghua.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.tuna.tsinghua.edu.cn/speedtest/1000mb.bin"}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Sjtug_Zhiyuan =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"sjtu", "SJTUG-zhiyuan", "上海交通大学致远镜像站", "https://mirrors.sjtug.sjtu.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/ctan" Big_File_ctan}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Zju =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"zju", "ZJU", "浙江大学开源软件镜像站", "https://mirrors.zju.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.zju.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Lzuoss =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"lzu", "LZUOSS", "兰州大学开源社区镜像站", "https://mirror.lzu.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirror.lzu.edu.cn/CTAN" Big_File_ctan}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Jlu =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"jlu", "JLU", "吉林大学开源镜像站", "https://mirrors.jlu.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.jlu.edu.cn/_static/speedtest.bin"}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Bfsu =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"bfsu", "BFSU", "北京外国语大学开源软件镜像站", "https://mirrors.bfsu.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.bfsu.edu.cn/speedtest/1000mb.bin"}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Pku =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"pku", "PKU", "北京大学开源镜像站", "https://mirrors.pku.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.pku.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Bjtu =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"bjtu", "BJTU", "北京交通大学自由与开源软件镜像站", "https://mirror.bjtu.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirror.bjtu.edu.cn/archlinux" Big_File_archlinux}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Sustech =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"sustech", "SUSTech", "南方科技大学开源软件镜像站", "https://mirrors.sustech.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.sustech.edu.cn/site/speedtest/1000mb.bin"}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Ustc =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.ustc.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Hust =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"hust", "HUST", "华中科技大学开源镜像站", "https://mirrors.hust.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.hust.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-05-24 21:40:17 +08:00
|
|
|
|
|
2023-09-15 12:44:50 +08:00
|
|
|
|
// 速度暂时处于10位以后,但是目前可用的源
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Iscas =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"iscas", "ISCAS", "中科院软件所智能软件研究中心开源镜像站", "https://mirror.iscas.ac.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirror.iscas.ac.cn/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Scau =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"scau", "SCAU", "华南农业大学开源软件镜像站", "https://mirrors.scau.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.scau.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
|
|
|
|
|
2024-12-07 22:08:50 +08:00
|
|
|
|
NJTech =
|
|
|
|
|
{
|
|
|
|
|
"njtech", "NJTech", "南京工业大学开源软件镜像站", "https://mirrors.njtech.edu.cn/",
|
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.njtech.edu.cn/ubuntu-releases" Big_File_ubuntu}
|
|
|
|
|
},
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Nju =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"nju", "NJU", "南京大学开源镜像站", "https://mirrors.nju.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
};
|
2023-09-15 12:44:50 +08:00
|
|
|
|
|
2024-08-09 02:52:42 +08:00
|
|
|
|
/**
|
2024-11-21 11:21:13 +08:00
|
|
|
|
* @note 2023-09-05 只使用了不到5次,重庆大学镜像站就把我的ip封杀了,对用户来说封杀策略过严,暂时不可靠,暂时不用
|
|
|
|
|
*
|
2024-11-22 11:43:18 +08:00
|
|
|
|
* Cqu =
|
|
|
|
|
* {
|
2024-11-21 11:21:13 +08:00
|
|
|
|
* "cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
* {NotSkip, NA, NA, "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
* };
|
|
|
|
|
*
|
2024-08-09 02:52:42 +08:00
|
|
|
|
*/
|
2023-09-15 12:44:50 +08:00
|
|
|
|
|
|
|
|
|
|
2023-09-27 15:04:36 +08:00
|
|
|
|
|
|
|
|
|
/**
|
2023-09-27 15:13:59 +08:00
|
|
|
|
* 商业公司提供的源
|
2023-09-27 15:04:36 +08:00
|
|
|
|
*/
|
2024-11-22 11:43:18 +08:00
|
|
|
|
MirrorSite_t Ali =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
/*
|
|
|
|
|
// https://mirrors.cloud.aliyuncs.com/
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Ali_ECS_VPC =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"ali-ECS-VPC", "Ali OPSX ECS VPC", "阿里巴巴开源镜像站(ECS VPC网络)", "https://developer.aliyun.com/mirror/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.cloud.aliyuncs.com/deepin-cd" Big_File_deepin}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
|
|
|
|
|
// https://mirrors.aliyuncs.com/
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Ali_ECS_classic =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"ali-ECS", "Ali OPSX ECS", "阿里巴巴开源镜像站(ECS 经典网络)", "https://developer.aliyun.com/mirror/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.aliyuncs.com/deepin-cd" Big_File_deepin}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
*/
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Tencent =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"tencent", "Tencent Public", "腾讯软件源(公网)", "https://mirrors.tencent.com/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.cloud.tencent.com/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
/*
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Tencent_Intra =
|
|
|
|
|
{
|
2024-09-14 02:54:29 +08:00
|
|
|
|
"tencent-intra", "Tencent Intranet", "腾讯软件源(内网)", "https://mirrors.tencent.com/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.cloud.tencentyun.com/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
*/
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Huawei =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"huawei", "Huawei Cloud", "华为开源镜像站", "https://mirrors.huaweicloud.com/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.huaweicloud.com/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Volcengine =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"volc", "Volcengine", "火山引擎开源软件镜像站(公网)", "https://developer.volcengine.com/mirror/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.volces.com/ubuntu-releases" Big_File_ubuntu}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
/*
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Volceengine_Intra =
|
|
|
|
|
{
|
2024-09-14 02:54:29 +08:00
|
|
|
|
"volc-intra", "Volcengine Intranet", "火山引擎开源软件镜像站(内网)",
|
|
|
|
|
"https://developer.volcengine.com/mirror/",
|
2024-09-29 12:53:10 +08:00
|
|
|
|
"https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu },
|
2024-09-14 02:54:29 +08:00
|
|
|
|
*/
|
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Netease =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.163.com/deepin-cd" Big_File_deepin}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
},
|
2024-09-14 02:54:29 +08:00
|
|
|
|
|
2024-11-22 11:43:18 +08:00
|
|
|
|
Sohu =
|
|
|
|
|
{
|
2024-11-21 11:21:13 +08:00
|
|
|
|
"sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/",
|
2024-11-21 11:54:13 +08:00
|
|
|
|
{NotSkip, NA, NA, "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}
|
2024-11-21 11:21:13 +08:00
|
|
|
|
};
|