使用 chef_set_source_url

This commit is contained in:
Aoran Zeng
2026-01-21 15:26:25 +08:00
parent b83362eb23
commit df1c4fae11
2 changed files with 29 additions and 5 deletions

View File

@@ -152,8 +152,9 @@ os_ubuntu_resetsrc (char *option)
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";
// Ubuntu 非 x86_64 架构的源地址有所不同
chef_set_source_url (this, &UpstreamProvider, "http://ports.ubuntu.com/ubuntu");
// this->sources[0].url = "http://ports.ubuntu.com/ubuntu";
}
os_ubuntu_setsrc (option);
}