RubyMetric / chsrc

chsrc 全平台通用换源工具. Change Source for every software on every platform from the command line.
https://gitee.com/RubyMetric/chsrc
GNU General Public License v3.0
1.32k stars 54 forks source link

Arch 换源导致 404 #41

Open Gn3po4g opened 4 days ago

Gn3po4g commented 4 days ago

以华为源为例,换源后mirrorlists文件会设置以下内容

Server = https://mirrors.huaweicloud.com/archlinux/archlinuxarm/$repo/os/$arch
[archlinuxcn]
Server=https://mirrors.huaweicloud.com/archlinux/archlinuxcn/$repo/os/$arch

同时控制台报错:

[chsrc 运行] pacman -Sy archlinux-keyring
error: could not register 'archlinuxcn' database (database already registered)
error: could not register 'archlinuxcn' database (database already registered)

有效设置路径应该为:Server = https://mirrors.huaweicloud.com/archlinux/$repo/os/$arch 且huawei源貌似不提供archlinuxcn。

ccmywish commented 4 days ago

@Gn3po4g 你好,感谢指出华为源没有 archlinuxcn.

我将 arch 和 archlinuxcn 拆分为了两个不同的源,可以分别使用:

chsrc set arch

chsrc set archlinuxcn

我刚已发布了最新版,可以从README链接中下载试用。