@@ -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)
148148void
149149os_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