manjaro 的配置
一、更新源的配置: 1)、自动方法: 在 终端 执行下面的命令从官方的源列表中对中国源进行测速和设置 sudo pacman-mirrors -c China 2)、手动方法 自动方法(上面的方法1,自动测速)的源ping虽然低但是更新时不是很稳定,下载速度忽高忽低,所以也可以用下面的方法手动指定想要使用的源。 创建一个名为 /etc/pacman.d/mirrors/Custom 的文件,并在里面加入: ## ## Pacman Mirrorlist ## [Custom] Server = http://mirrors.tuna.tsinghua.edu.cn/manjaro/stable/$repo/$arch Server = https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch # 目前中国有四个源我去除了两个实际速度不加的,查看官方的源列表 http://repo.manjaro.org/ # 可以加入其它的软件源,格式与这个类似。 保存后接着编辑 /etc/pacman-mirrors.conf ,使 pacman-mirrors 只对这个文件列出的镜像站进行排行: OnlyCountry = Custom 如果需要关闭测速则进一步修改 Method=random 保存后终端执行 sudo pacman