From dac3cb7e9105576ff02fc6fb55485afccc73f33b Mon Sep 17 00:00:00 2001 From: MaBing Date: Mon, 19 Jan 2026 22:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dubuntu=20arm64=E4=B8=8Breset?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chsrc-main.c | 3 ++- src/recipe/os/APT/Ubuntu.c | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/chsrc-main.c b/src/chsrc-main.c index 609751b5..4f27959b 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -75,7 +75,8 @@ chsrc_register_contributors () // 该 ID 为 Gitee ID chef_register_contributor ("@hezonglun", "HeZongLun", "hezonglun123456@outlook.com", NULL); chef_register_contributor ("@Young-Lord", "LY", "ly-niko@qq.com", NULL); - chef_register_contributor ("@MingriLingran", "MingriLingran", "i@linran.moe", NULL); + chef_register_contributor ("@MingriLingran", "MingriLingran", "i@linran.moe", NULL); + chef_register_contributor ("@usernameisnull", "MaBing", "cumt_ttr@163.com", NULL); /** * AI贡献者: diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index 7a5dff5f..475f122b 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -11,12 +11,12 @@ os_ubuntu_prelude () chef_prep_this (os_ubuntu, gsr); chef_set_created_on (this, "2023-08-30"); - chef_set_last_updated (this, "2025-08-10"); - chef_set_sources_last_updated (this, "2025-07-11"); + chef_set_last_updated (this, "2026-01-20"); + chef_set_sources_last_updated (this, "2026-01-20"); chef_set_chef (this, NULL); chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y"); - chef_set_sauciers (this, 1, "@XUANJI233"); + chef_set_sauciers (this, 2, "@XUANJI233", "@usernameisnull"); chef_allow_local_mode (this, CanNot, NULL, NULL); chef_deny_english(this); @@ -25,8 +25,8 @@ os_ubuntu_prelude () chef_set_note(this, NULL, NULL); def_sources_begin() - {&UpstreamProvider, "http://archive.ubuntu.com/ubuntu/", FeedByPrelude}, /* 不支持https */ - {&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/",FeedByPrelude}, + {&UpstreamProvider, "http://archive.ubuntu.com/ubuntu", FeedByPrelude}, /* 不支持https */ + {&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu",FeedByPrelude}, {&Ali, "https://mirrors.aliyun.com/ubuntu",FeedByPrelude}, {&Volcengine, "https://mirrors.volces.com/ubuntu",FeedByPrelude}, {&Bfsu, "https://mirrors.bfsu.edu.cn/ubuntu",FeedByPrelude}, @@ -148,5 +148,12 @@ os_ubuntu_setsrc (char *option) void os_ubuntu_resetsrc (char *option) { + use_this (os_ubuntu); + char *arch = chsrc_get_cpuarch (); + if (strncmp (arch, "x86_64", 6)!=0) + { + // ubuntu arm的源地址和x86_64不一样 + this->sources[0].url = "http://ports.ubuntu.com/ubuntu"; + } os_ubuntu_setsrc (option); }