Arch Linux CN Software Repository Mirror Usage Guide
Introduction to Arch Linux CN and Software Management
The Arch Linux Chinese Community Repository, an unofficial software repository driven by the Arch Linux Chinese Community, includes many additional packages not provided by the official repositories, as well as git versions and other variants of existing software. Some of the packaging scripts for these packages originate from the AUR (Arch User Repository), but there are also many packages that differ from those in the AUR.
Arch Linux CN Software Source Replacement
To avoid problems when replacing software source configuration files, please make a backup of the system's default software source configuration files before proceeding.
- Edit the
/etc/pacman.conf
add the following line to the top of the file:
[archlinuxcn]
Server = https://mirrors.hust.edu.cn/archlinuxcn/$arch
- Install the archlinuxcn-keyring:
sudo pacman -S archlinuxcn-keyring
If you encounter the following error during the installation process:
error: archlinuxcn-keyring: Signature from "Jiachen YANG (Arch Linux Packager Signing Key) " is marginal trust
This issue occurs because the developer has retired, which leaves the GPG key for farseerfc with a limited trust status in new installations. You can address this by executing the following command:
sudo pacman-key --lsign-key "farseerfc@archlinux.org"
- Update the package cache:
sudo pacman -Syyu
The yy
in the command helps prevent issues when switching from broken mirrors to healthy mirrors.
If you want to switch from a newer mirror to an older mirror, you can execute the following command to downgrade some packages and avoid partial updates to the system:
sudo pacman -Syyuu
One-click source switching
This method is only applicable for switching from the official source to our site's source. If you have already switched sources, please do not use the following commands.
Use the echo
command to add the URL of the current mirror to the end of the configuration file:
sudo echo -e "[archlinuxcn]
Server = https://mirrors.hust.edu.cn/archlinuxcn/$arch" >> /etc/pacman.conf