Make Ubuntu all sources accurate

This commit is contained in:
Aoran Zeng 2025-07-11 17:58:29 +08:00
parent dce39ed6c8
commit 1c27e328c9
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -6,33 +6,60 @@
* Contributors : Zhao <1792582687@qq.com> * Contributors : Zhao <1792582687@qq.com>
* | * |
* Created On : <2023-08-30> * Created On : <2023-08-30>
* Last Modified : <2025-03-25> * Last Modified : <2025-07-11>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
#define OS_Ubuntu_Speed_URL_Postfix "/dists/noble/Contents-amd64.gz"
static SourceProvider_t os_ubuntu_upstream = static SourceProvider_t os_ubuntu_upstream =
{ {
def_upstream, "http://archive.ubuntu.com/", def_upstream, "http://archive.ubuntu.com/",
// https://github.com/RubyMetric/chsrc/issues/121 // https://github.com/RubyMetric/chsrc/issues/121
{NotSkip, NA, NA, "http://archive.ubuntu.com/ubuntu/dists/noble/Contents-amd64.gz", ACCURATE} {NotSkip, NA, NA, "http://archive.ubuntu.com/ubuntu/dists/noble/Contents-amd64.gz", /* 48.9 MB*/ ACCURATE}
}; };
/** /**
* @update 2024-11-21 * @update 2025-07-11
*/ */
static Source_t os_ubuntu_sources[] = static Source_t os_ubuntu_sources[] =
{ {
{&os_ubuntu_upstream, "http://archive.ubuntu.com/ubuntu/"}, // 不支持https {&os_ubuntu_upstream, "http://archive.ubuntu.com/ubuntu/", /* 不支持https */
{&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/"}, DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/ubuntu"},
{&Volcengine, "https://mirrors.volces.com/ubuntu"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/",
{&Bfsu, "https://mirrors.bfsu.edu.cn/ubuntu"}, "https://mirrors.cernet.edu.cn/ubuntu/" OS_Ubuntu_Speed_URL_Postfix },
{&Ustc, "https://mirrors.ustc.edu.cn/ubuntu"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/ubuntu"}, {&Ali, "https://mirrors.aliyun.com/ubuntu",
{&Tencent, "https://mirrors.tencent.com/ubuntu"}, "https://mirrors.aliyun.com/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/ubuntu"},
{&Huawei, "https://mirrors.huaweicloud.com/ubuntu"}, {&Volcengine, "https://mirrors.volces.com/ubuntu",
// {&Netease, "https://mirrors.163.com/ubuntu"}, /* 不启用原因:过慢 */ "https://mirrors.volces.com/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
// {&Sohu, "https://mirrors.sohu.com/ubuntu"} /* 不启用原因:过慢 */
{&Bfsu, "https://mirrors.bfsu.edu.cn/ubuntu",
"https://mirrors.bfsu.edu.cn/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
{&Ustc, "https://mirrors.ustc.edu.cn/ubuntu",
"https://mirrors.ustc.edu.cn/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/ubuntu",
"https://mirrors.tuna.tsinghua.edu.cn/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
{&Tencent, "https://mirrors.tencent.com/ubuntu",
"https://mirrors.tencent.com/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/ubuntu",
// "https://mirrors.tencentyun.com/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
{&Huawei, "https://mirrors.huaweicloud.com/ubuntu",
"https://mirrors.huaweicloud.com/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
/* 不启用原因:过慢 */
// {&Netease, "https://mirrors.163.com/ubuntu",
// "https://mirrors.163.com/ubuntu" OS_Ubuntu_Speed_URL_Postfix},
/* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/ubuntu",
// "https://mirrors.sohu.com/ubuntu" OS_Ubuntu_Speed_URL_Postfix}
}; };
def_sources_n(os_ubuntu); def_sources_n(os_ubuntu);