1. Why Configure Two Mirror Sources
2. Common Domestic Mirror Sources
//University of Science and Technology of China//Raspberry Pi OS http://mirrors.ustc.edu.cn/raspbian/raspbian/
//Aliyun//Raspberry Pi OS http://mirrors.aliyun.com/raspbian/raspbian/
//Tsinghua University//Raspberry Pi OS http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
//Huazhong University of Science and Technology//Raspberry Pi OS http://mirrors.hustunique.com/raspbian/raspbian///Arch Linux ARM http://mirrors.hustunique.com/archlinuxarm/
//South China Agricultural University (for South China users)//Raspberry Pi OS http://mirrors.scau.edu.cn/raspbian/
//Dalian Neusoft Information College Source (for Northern users)//Raspberry Pi OS http://mirrors.neusoft.edu.cn/raspbian/raspbian/
//Chongqing University Source (for Central and Western users)//Raspberry Pi OS http://mirrors.cqu.edu.cn/Raspbian/raspbian/
3. Backup Two Mirror Sources
Note: It is best to add the date
sudo cp /etc/apt/sources.list /etc/apt/sources.list.20240116.baksudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.20240116.bak
vim /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bookworm main non-free contribdeb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bookworm main non-free contrib
deb http://mirrors.sysu.edu.cn/raspbian/raspbian/ bullseye main contrib non-freedeb-src http://mirrors.sysu.edu.cn/raspbian/raspbian/ bullseye main contrib non-free
deb http://mirrors.sysu.edu.cn/raspbian/raspbian/ buster main contrib non-freedeb-src http://mirrors.sysu.edu.cn/raspbian/raspbian/ buster main contrib non-free
deb http://mirrors.sysu.edu.cn/raspbian/raspbian/ stretch main contrib non-freedeb-src http://mirrors.sysu.edu.cn/raspbian/raspbian/ stretch main contrib non-free
deb http://mirrors.sysu.edu.cn/raspbian/raspbian/ jessie main contrib non-freedeb-src http://mirrors.sysu.edu.cn/raspbian/raspbian/ jessie main contrib non-free
5. Replace System Sources
vim /etc/apt/sources.list.d/raspi.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bookworm main non-free contrib# Uncomment line below then 'apt-get update' to enable 'apt-get source'#deb-src http://archive.raspberrypi.org/debian/ buster main ui
6. Update Sources
#Update software source list
sudo apt-get update
#Update software version (optional)
sudo apt-get upgradesudo apt-get dist-upgrade
(Note: Some content is sourced from the open-source community, thanks to the teachers of the open-source community!)