pacman一键更换国内源

博客原文章地址

安装好Manjaro之后使用pacman速度慢还容易失败。使用如下命令一键换成国内源:

sudo pacman-mirrors -c China

以下是切换成功提示:

::INFO Downloading mirrors from repo.manjaro.org
::INFO User generated mirror list
::------------------------------------------------------------
::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  0.580 China          : https://mirrors.huaweicloud.com/manjaro/
  0.402 China          : http://mirrors.huaweicloud.com/manjaro/
  0.397 China          : https://mirrors.aliyun.com/manjaro/
  0.432 China          : https://mirrors.ustc.edu.cn/manjaro/
  ..... China          : https://mirrors.tuna.tsinghua.edu.cn/manjaro/
  0.609 China          : https://mirrors.tuna.tsinghua.edu.cn/manjaro/
  1.066 China          : https://mirrors.sjtug.sjtu.edu.cn/manjaro/
::INFO Writing mirror list
::China           : https://mirrors.aliyun.com/manjaro/arm-stable
::China           : https://mirrors.huaweicloud.com/manjaro/arm-stable
::China           : https://mirrors.ustc.edu.cn/manjaro/arm-stable
::China           : https://mirrors.tuna.tsinghua.edu.cn/manjaro/arm-stable
::China           : https://mirrors.sjtug.sjtu.edu.cn/manjaro/arm-stable
::China           : https://mirrors.tuna.tsinghua.edu.cn/manjaro/arm-stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

上一篇:中国的数字化转型 China’s digital transformation


下一篇:Python 格式化字符串传值问题(format() 与 %s)