[Raspberry Pi] The default source of Raspberry Pi and replace it with domestic source

First of all, everyone must remember to back up the default source. After some domestic sources are replaced, the system cannot be updated normally and needs to be restored. The default source is

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

If you want to replace Raspberry Pi with Tsinghua source, you can edit /etc/apt/sources.list to read

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

If you want to change to Aliyun source, you can change it to

deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi

Guess you like

Origin blog.csdn.net/FL1623863129/article/details/132308129