Update sources for APT group

This commit is contained in:
Aoran Zeng 2024-11-21 08:54:49 +08:00
parent d4ecd8dc1e
commit 9e6ff663f9
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
9 changed files with 49 additions and 29 deletions

View File

@ -603,7 +603,7 @@ select_mirror_autoly (SourceInfo *sources, size_t size, const char *target_name)
char *msg = CliOpt_InEnglish ? "Measuring speed in sequence" : "测速中"; char *msg = CliOpt_InEnglish ? "Measuring speed in sequence" : "测速中";
xy_log_brkt (App_Name, bdpurple (CliOpt_InEnglish ? "MEASURE" : "测速"), msg); xy_log_brkt (App_Name, bdpurple (CliOpt_InEnglish ? "MEASURE" : "测速"), msg);
say (""); br();
} }
if (0==size || 1==size) if (0==size || 1==size)
@ -635,7 +635,7 @@ select_mirror_autoly (SourceInfo *sources, size_t size, const char *target_name)
/* 总测速记录值 */ /* 总测速记录值 */
double speed_records[size]; double speed_records[size];
measure_speed_for_every_source (sources, size, speed_records); measure_speed_for_every_source (sources, size, speed_records);
say (""); br();
/* DEBUG */ /* DEBUG */
/* /*

View File

@ -782,7 +782,7 @@ main (int argc, char const *argv[])
char *msg = CliOpt_InEnglish ? "Please provide the target name you want to set the source. " MSG_EN_USE_LIST_TARGETS char *msg = CliOpt_InEnglish ? "Please provide the target name you want to set the source. " MSG_EN_USE_LIST_TARGETS
: "请您提供想要设置源的目标名。" MSG_CN_USE_LIST_TARGETS; : "请您提供想要设置源的目标名。" MSG_CN_USE_LIST_TARGETS;
chsrc_error (msg); chsrc_error (msg);
return Exit_Unknown return Exit_Unknown;
} }
target = argv[cli_arg_Target_pos]; target = argv[cli_arg_Target_pos];

View File

@ -4,16 +4,18 @@
* File Authors : Shengwei Chen <414685209@qq.com> * File Authors : Shengwei Chen <414685209@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com> * Contributors : Aoran Zeng <ccmywish@qq.com>
* | Yangmoooo <yangmoooo@outlook.com> * | Yangmoooo <yangmoooo@outlook.com>
* |
* Created On : <2024-06-14> * Created On : <2024-06-14>
* Last Modified : <2024-08-27> * Last Modified : <2024-11-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2024-06-20 * @update 2024-11-21
*/ */
static SourceInfo static SourceInfo
os_armbian_sources[] = { os_armbian_sources[] = {
{&Upstream, "http://apt.armbian.com"}, {&Upstream, "http://apt.armbian.com"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/armbian"},
@ -39,7 +41,7 @@ os_armbian_getsrc (char *option)
} }
/** /**
* : https://mirrors.tuna.tsinghua.edu.cn/help/armbian * @consult https://mirrors.tuna.tsinghua.edu.cn/help/armbian
*/ */
void void
os_armbian_setsrc (char *option) os_armbian_setsrc (char *option)

View File

@ -4,16 +4,18 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* | Heng Guo <2085471348@qq.com> * | Heng Guo <2085471348@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com> * Contributors : Yangmoooo <yangmoooo@outlook.com>
* |
* Created On : <2023-09-02> * Created On : <2023-09-02>
* Last Modified : <2024-10-31> * Last Modified : <2024-11-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @update 2024-06-12 * @update 2024-11-21
*/ */
static SourceInfo static SourceInfo
os_debian_sources[] = { os_debian_sources[] = {
{&Upstream, "http://deb.debian.org/debian"}, {&Upstream, "http://deb.debian.org/debian"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/"},
{&Ali, "https://mirrors.aliyun.com/debian"}, {&Ali, "https://mirrors.aliyun.com/debian"},
{&Volcengine, "https://mirrors.volces.com/debian"}, {&Volcengine, "https://mirrors.volces.com/debian"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/debian"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/debian"},

View File

@ -4,17 +4,18 @@
* File Authors : Heng Guo <2085471348@qq.com> * File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com> * Contributors : Yangmoooo <yangmoooo@outlook.com>
* Created On : <2023-09-29> * Created On : <2023-09-29>
* Last Modified : <2024-08-16> * Last Modified : <2024-11-21>
* *
* Kali Linux Debian Testing branch * Kali Linux Debian Testing branch
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @update 2024-06-12 * @update 2024-11-21
*/ */
static SourceInfo static SourceInfo
os_kali_sources[] = { os_kali_sources[] = {
{&Upstream, "http://http.kali.org/kali"}, {&Upstream, "http://http.kali.org/kali"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali"},
{&Ali, "https://mirrors.aliyun.com/kali"}, {&Ali, "https://mirrors.aliyun.com/kali"},
{&Volcengine, "https://mirrors.volces.com/kali"}, {&Volcengine, "https://mirrors.volces.com/kali"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/kali"},

View File

@ -3,17 +3,20 @@
* ------------------------------------------------------------- * -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com> * Contributors : Yangmoooo <yangmoooo@outlook.com>
* |
* Created On : <2023-09-29> * Created On : <2023-09-29>
* Last Modified : <2024-08-16> * Last Modified : <2024-11-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-29 * @update 2024-11-21
*/ */
static SourceInfo static SourceInfo
os_linuxlite_sources[] = { os_linuxlite_sources[] = {
{&Upstream, "http://repo.linuxliteos.com/linuxlite/"}, {&Upstream, "http://repo.linuxliteos.com/linuxlite/"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"} {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"},
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/"}
}; };
def_sources_n(os_linuxlite); def_sources_n(os_linuxlite);

View File

@ -4,11 +4,11 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-29> * Created On : <2023-09-29>
* Last Modified : <2024-08-16> * Last Modified : <2024-11-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-29 * @update 2024-11-21
* @note Ubuntu的不太一样 * @note Ubuntu的不太一样
*/ */
static SourceInfo static SourceInfo
@ -16,6 +16,16 @@ os_linuxmint_sources[] = {
{&Upstream, NULL}, {&Upstream, NULL},
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"},
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"}, {&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/"},
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/"},
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/"},
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/"},
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/"},
{&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); def_sources_n(os_linuxmint);

View File

@ -4,21 +4,22 @@
* File Authors : Aoran Zeng <ccmywish@qq.com> * File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org> * Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-29> * Created On : <2023-09-29>
* Last Modified : <2024-08-16> * Last Modified : <2024-11-21>
* *
* Trisquel基于Ubuntu开发使 Linux-libre * Trisquel基于Ubuntu开发使 Linux-libre
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @time 2023-09-29 * @time 2024-11-21
*/ */
static SourceInfo static SourceInfo
os_trisquel_sources[] = { os_trisquel_sources[] = {
{&Upstream, NULL}, {&Upstream, NULL},
{&Ali, "https://mirrors.aliyun.com/trisquel/"},
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"},
{&Ali, "https://mirrors.aliyun.com/trisquel/"},
{&Nju, "https://mirror.nju.edu.cn/trisquel/"}, {&Nju, "https://mirror.nju.edu.cn/trisquel/"},
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"} {&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"},
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/"}
}; };
def_sources_n(os_trisquel); def_sources_n(os_trisquel);

View File

@ -6,15 +6,16 @@
* Contributors : Zhao <1792582687@qq.com> * Contributors : Zhao <1792582687@qq.com>
* | * |
* Created On : <2023-08-30> * Created On : <2023-08-30>
* Last Modified : <2024-11-08> * Last Modified : <2024-11-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
* @update 2024-11-05 * @update 2024-11-21
*/ */
static SourceInfo static SourceInfo
os_ubuntu_sources[] = { os_ubuntu_sources[] = {
{&Upstream, "http://archive.ubuntu.com/ubuntu/"}, //不支持https {&Upstream, "http://archive.ubuntu.com/ubuntu/"}, //不支持https
{&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/"},
{&Ali, "https://mirrors.aliyun.com/ubuntu"}, {&Ali, "https://mirrors.aliyun.com/ubuntu"},
{&Volcengine, "https://mirrors.volces.com/ubuntu"}, {&Volcengine, "https://mirrors.volces.com/ubuntu"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/ubuntu"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/ubuntu"},