From c60e7405497a204303e1dab4c004b49089551f57 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 20 Jun 2025 16:22:58 +0800 Subject: [PATCH] Disable most sources from `netease` --- src/framework/mirror.c | 4 ++++ src/recipe/lang/Python/common.h | 2 +- src/recipe/os/APT/Debian.c | 2 +- src/recipe/os/APT/Kali-Linux.c | 8 ++------ src/recipe/os/APT/Linux-Mint.c | 2 +- src/recipe/os/APT/Ubuntu.c | 2 +- src/recipe/os/APT/deepin.c | 2 +- src/recipe/os/YUM/Fedora-Linux.c | 6 +++--- src/recipe/os/YUM/Rocky-Linux.c | 2 +- src/recipe/os/YUM/openEuler.c | 2 +- src/recipe/os/pacman/Arch-Linux.c | 12 ++++++------ src/recipe/os/pacman/MSYS2.c | 10 +++++----- 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/framework/mirror.c b/src/framework/mirror.c index f383ea7..9eaedab 100644 --- a/src/framework/mirror.c +++ b/src/framework/mirror.c @@ -218,6 +218,10 @@ Volceengine_Intra = "https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu }, */ + +/** + * @note 2026-06-20 网易开源镜像站的速度始终过低,不建议再使用 + */ Netease = { "netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/", diff --git a/src/recipe/lang/Python/common.h b/src/recipe/lang/Python/common.h index 9daa5f7..8d97d63 100644 --- a/src/recipe/lang/Python/common.h +++ b/src/recipe/lang/Python/common.h @@ -36,7 +36,7 @@ static Source_t pl_python_sources[] = // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/pypi/simple"}, {&Huawei, "https://mirrors.huaweicloud.com/repository/pypi/simple"}, {&Hust, "https://mirrors.hust.edu.cn/pypi/web/simple"} - // {&Netease, "https://mirrors.163.com/.help/pypi.html"} // 不用,24小时更新一次 + // {&Netease, "https://mirrors.163.com/.help/pypi.html"} /* 不启用原因:24小时更新一次 */ }; def_sources_n(pl_python); diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index 7751e14..53a9a64 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -32,7 +32,7 @@ static Source_t os_debian_sources[] = {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian"}, {&Tencent, "https://mirrors.tencent.com/debian"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/debian"}, - {&Netease, "https://mirrors.163.com/debian"}, + // {&Netease, "https://mirrors.163.com/debian"}, /* 不启用原因:过慢 */ {&Sohu, "https://mirrors.sohu.com/debian"} }; def_sources_n(os_debian); diff --git a/src/recipe/os/APT/Kali-Linux.c b/src/recipe/os/APT/Kali-Linux.c index b7e9cd2..140421f 100644 --- a/src/recipe/os/APT/Kali-Linux.c +++ b/src/recipe/os/APT/Kali-Linux.c @@ -6,7 +6,7 @@ * | Happy Game * | * Created On : <2023-09-29> - * Last Modified : <2025-01-03> + * Last Modified : <2025-06-20> * * Kali Linux 基于 Debian Testing branch * ------------------------------------------------------------*/ @@ -19,7 +19,7 @@ static SourceProvider_t os_kali_upstream = }; /** - * @update 2025-01-03 + * @update 2025-06-20 */ static Source_t os_kali_sources[] = { @@ -30,11 +30,7 @@ static Source_t os_kali_sources[] = {&Bfsu, "https://mirrors.bfsu.edu.cn/kali"}, {&Ustc, "https://mirrors.ustc.edu.cn/kali"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali"}, - // {&Tencent, "https://mirrors.tencent.com/kali"}, // 无kali源 - // {&Tencent_Intra, "https://mirrors.tencentyun.com/kali"}, // {&Huawei, "https://mirrors.huaweicloud.com/kali"}, // 未与上游同步 - // {&Netease, "https://mirrors.163.com/kali"}, // 无kali源 - // {&Sohu, "https://mirrors.sohu.com/kali"} //无kali源 }; def_sources_n(os_kali); diff --git a/src/recipe/os/APT/Linux-Mint.c b/src/recipe/os/APT/Linux-Mint.c index 252cab0..ca17d33 100644 --- a/src/recipe/os/APT/Linux-Mint.c +++ b/src/recipe/os/APT/Linux-Mint.c @@ -27,7 +27,7 @@ static Source_t os_linuxmint_sources[] = {&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/"}, {&Iscas, "https://mirror.iscas.ac.cn/linuxmint/"}, {&Scau, "https://mirrors.scau.edu.cn/linuxmint/"}, - {&Netease, "https://mirrors.163.com/linuxmint/packages/"}, + // {&Netease, "https://mirrors.163.com/linuxmint/packages/"} /* 不启用原因:过慢 */ }; def_sources_n(os_linuxmint); diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index 1aab63b..331d18b 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -31,7 +31,7 @@ static Source_t os_ubuntu_sources[] = {&Tencent, "https://mirrors.tencent.com/ubuntu"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/ubuntu"}, {&Huawei, "https://mirrors.huaweicloud.com/ubuntu"}, - {&Netease, "https://mirrors.163.com/ubuntu"}, + // {&Netease, "https://mirrors.163.com/ubuntu"}, /* 不启用原因:过慢 */ {&Sohu, "https://mirrors.sohu.com/ubuntu"} }; def_sources_n(os_ubuntu); diff --git a/src/recipe/os/APT/deepin.c b/src/recipe/os/APT/deepin.c index a6b237b..bd762f8 100644 --- a/src/recipe/os/APT/deepin.c +++ b/src/recipe/os/APT/deepin.c @@ -21,7 +21,7 @@ static Source_t os_deepin_sources[] = {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin"}, {&Tencent, "https://mirrors.tencent.com/deepin"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin"}, - {&Netease, "https://mirrors.163.com/deepin"}, + // {&Netease, "https://mirrors.163.com/deepin"}, /* 不启用原因:过慢 */ {&Sohu, "https://mirrors.sohu.com/deepin"} }; def_sources_n(os_deepin); diff --git a/src/recipe/os/YUM/Fedora-Linux.c b/src/recipe/os/YUM/Fedora-Linux.c index c93459c..77dfc6b 100644 --- a/src/recipe/os/YUM/Fedora-Linux.c +++ b/src/recipe/os/YUM/Fedora-Linux.c @@ -6,13 +6,13 @@ * Contributors : Aoran Zeng * | * Created On : <2023-09-26> - * Last Modified : <2024-11-04> + * Last Modified : <2025-06-20> * * 名称为 Fedora Linux * ------------------------------------------------------------*/ /** - * @update 2024-11-04 + * @update 2025-06-20 */ static Source_t os_fedora_sources[] = { @@ -23,7 +23,7 @@ static Source_t os_fedora_sources[] = {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora"}, {&Tencent, "https://mirrors.tencent.com/fedora"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora"}, - {&Netease, "https://mirrors.163.com/fedora"}, + // {&Netease, "https://mirrors.163.com/fedora"}, /* 不启用原因:过慢 */ {&Sohu, "https://mirrors.sohu.com/fedora"} }; def_sources_n(os_fedora); diff --git a/src/recipe/os/YUM/Rocky-Linux.c b/src/recipe/os/YUM/Rocky-Linux.c index 57b879f..ce9fb1b 100644 --- a/src/recipe/os/YUM/Rocky-Linux.c +++ b/src/recipe/os/YUM/Rocky-Linux.c @@ -22,7 +22,7 @@ static Source_t os_rockylinux_sources[] = {&Zju, "https://mirrors.zju.edu.cn/rocky"}, {&Lzuoss, "https://mirror.lzu.edu.cn/rocky"}, {&Sohu, "https://mirrors.sohu.com/Rocky"}, - {&Netease, "https://mirrors.163.com/rocky"} + // {&Netease, "https://mirrors.163.com/rocky"} /* 不启用原因:过慢 */ }; def_sources_n(os_rockylinux); diff --git a/src/recipe/os/YUM/openEuler.c b/src/recipe/os/YUM/openEuler.c index 03c2e14..aebffb5 100644 --- a/src/recipe/os/YUM/openEuler.c +++ b/src/recipe/os/YUM/openEuler.c @@ -29,7 +29,7 @@ static Source_t os_openeuler_sources[] = {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/"}, {&Tencent, "https://mirrors.tencent.com/openeuler/"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/"}, - {&Netease, "https://mirrors.163.com/openeuler/"} + // {&Netease, "https://mirrors.163.com/openeuler/"} /* 不启用原因:过慢 */ // {&Sohu, "https://mirrors.sohu.com/openeuler/"} }; def_sources_n(os_openeuler); diff --git a/src/recipe/os/pacman/Arch-Linux.c b/src/recipe/os/pacman/Arch-Linux.c index 9317f34..fac990e 100644 --- a/src/recipe/os/pacman/Arch-Linux.c +++ b/src/recipe/os/pacman/Arch-Linux.c @@ -6,11 +6,11 @@ * Contributors : happy game * | * Created On : <2023-09-05> - * Last Modified : <2025-05-24> + * Last Modified : <2025-06-20> * ------------------------------------------------------------*/ /** - * @update 2024-07-03 + * @update 2025-06-20 * @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀 */ static Source_t os_arch_sources[] = @@ -22,9 +22,9 @@ static Source_t os_arch_sources[] = {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinux"}, {&Tencent, "https://mirrors.tencent.com/archlinux"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/archlinux"}, - {&Huawei, "https://mirrors.huaweicloud.com/archlinux"}, // 不支持 archlinuxcn - {&Netease, "https://mirrors.163.com/archlinux"}, // archlinuxcn 的URL和其他镜像站不同 - // {&Sohu, "https://mirrors.sohu.com/archlinux"} // 不支持 archlinuxcn + {&Huawei, "https://mirrors.huaweicloud.com/archlinux"}, + // {&Netease, "https://mirrors.163.com/archlinux"}, /* 不启用原因:过慢 */ + // {&Sohu, "https://mirrors.sohu.com/archlinux"} }, /** @@ -40,7 +40,7 @@ os_archlinuxcn_sources[] = {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/"}, {&Tencent, "https://mirrors.cloud.tencent.com/archlinuxcn/"}, // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/archlinuxcn/"}, - {&Netease, "https://mirrors.163.com/archlinux-cn/"} + // {&Netease, "https://mirrors.163.com/archlinux-cn/"} /* 不启用原因:过慢 */ }; def_sources_n(os_arch); def_sources_n(os_archlinuxcn); diff --git a/src/recipe/os/pacman/MSYS2.c b/src/recipe/os/pacman/MSYS2.c index bba2a4a..8a58743 100644 --- a/src/recipe/os/pacman/MSYS2.c +++ b/src/recipe/os/pacman/MSYS2.c @@ -1,14 +1,14 @@ /** ------------------------------------------------------------ * SPDX-License-Identifier: GPL-3.0-or-later * ------------------------------------------------------------- - * File Authors : Heng Guo <2085471348@qq.com> - * Contributors : Nil Null + * File Authors : Heng Guo <2085471348@qq.com> + * Contributors : Aoran Zeng * Created On : <2023-09-06> - * Last Modified : <2024-08-16> + * Last Modified : <2025-06-20> * ------------------------------------------------------------*/ /** - * @update 2024-04-18 + * @update 2025-06-20 */ static Source_t os_msys2_sources[] = { @@ -19,7 +19,7 @@ static Source_t os_msys2_sources[] = {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/msys2"}, {&Tencent, "https://mirrors.tencent.com/msys2"}, {&Huawei, "https://mirrors.huaweicloud.com/msys2"}, - {&Netease, "https://mirrors.163.com/msys2"}, + // {&Netease, "https://mirrors.163.com/msys2"}, /* 不启用原因:过慢 */ {&Sohu, "https://mirrors.sohu.com/msys2"} }; def_sources_n(os_msys2);