@@ -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 },
@@ -87,6 +87,7 @@ os_ubuntu_setsrc_for_deb822 (char *option)
8787 }
8888 else
8989 {
90+ source .url = "http://ports.ubuntu.com/ubuntu" ;
9091 cmd = xy_strcat (3 , "sed -E -i \'s@https?://.*/ubuntu-ports/?@" , source .url , "-ports@g\' " OS_Ubuntu_SourceList_DEB822 );
9192 }
9293
@@ -134,6 +135,7 @@ os_ubuntu_setsrc (char *option)
134135 }
135136 else
136137 {
138+ source .url = "http://ports.ubuntu.com/ubuntu" ;
137139 cmd = xy_strcat (3 , "sed -E -i \'s@https?://.*/ubuntu-ports/?@" , source .url , "-ports@g\' " OS_Ubuntu_old_SourceList );
138140 }
139141
0 commit comments