Skip to content

Commit dac3cb7

Browse files
修复ubuntu arm64下reset的问题
1 parent 90d3104 commit dac3cb7

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/chsrc-main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ chsrc_register_contributors ()
7575
// 该 ID 为 Gitee ID
7676
chef_register_contributor ("@hezonglun", "HeZongLun", "hezonglun123456@outlook.com", NULL);
7777
chef_register_contributor ("@Young-Lord", "LY", "ly-niko@qq.com", NULL);
78-
chef_register_contributor ("@MingriLingran", "MingriLingran", "i@linran.moe", NULL);
78+
chef_register_contributor ("@MingriLingran", "MingriLingran", "i@linran.moe", NULL);
79+
chef_register_contributor ("@usernameisnull", "MaBing", "cumt_ttr@163.com", NULL);
7980

8081
/**
8182
* AI贡献者:

src/recipe/os/APT/Ubuntu.c

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ os_ubuntu_prelude ()
1111
chef_prep_this (os_ubuntu, gsr);
1212

1313
chef_set_created_on (this, "2023-08-30");
14-
chef_set_last_updated (this, "2025-08-10");
15-
chef_set_sources_last_updated (this, "2025-07-11");
14+
chef_set_last_updated (this, "2026-01-20");
15+
chef_set_sources_last_updated (this, "2026-01-20");
1616

1717
chef_set_chef (this, NULL);
1818
chef_set_cooks (this, 2, "@ccmywish", "@G_I_Y");
19-
chef_set_sauciers (this, 1, "@XUANJI233");
19+
chef_set_sauciers (this, 2, "@XUANJI233", "@usernameisnull");
2020

2121
chef_allow_local_mode (this, CanNot, NULL, NULL);
2222
chef_deny_english(this);
@@ -25,8 +25,8 @@ os_ubuntu_prelude ()
2525
chef_set_note(this, NULL, NULL);
2626

2727
def_sources_begin()
28-
{&UpstreamProvider, "http://archive.ubuntu.com/ubuntu/", FeedByPrelude}, /* 不支持https */
29-
{&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/",FeedByPrelude},
28+
{&UpstreamProvider, "http://archive.ubuntu.com/ubuntu", FeedByPrelude}, /* 不支持https */
29+
{&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu",FeedByPrelude},
3030
{&Ali, "https://mirrors.aliyun.com/ubuntu",FeedByPrelude},
3131
{&Volcengine, "https://mirrors.volces.com/ubuntu",FeedByPrelude},
3232
{&Bfsu, "https://mirrors.bfsu.edu.cn/ubuntu",FeedByPrelude},
@@ -148,5 +148,12 @@ os_ubuntu_setsrc (char *option)
148148
void
149149
os_ubuntu_resetsrc (char *option)
150150
{
151+
use_this (os_ubuntu);
152+
char *arch = chsrc_get_cpuarch ();
153+
if (strncmp (arch, "x86_64", 6)!=0)
154+
{
155+
// ubuntu arm的源地址和x86_64不一样
156+
this->sources[0].url = "http://ports.ubuntu.com/ubuntu";
157+
}
151158
os_ubuntu_setsrc (option);
152159
}

0 commit comments

Comments
 (0)