Skip to content

Commit 631a98f

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/recipe/os/APT/Ubuntu.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)