以下仅为记录,raspbian修改源不仅需要修改/etc/apt/sources.list,还需要同时修改/etc/apt/sources.d/raspi.list。

替换两个文件到中科大的源:

(1) 修改/etc/apt/sources.list如下:

1
2
3
4
5
#deb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ buster main contrib non-free rpi
#科大源
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

(2) 修改/etc/apt/sources.list.d/raspi.list如下:

1
2
3
4
5
#deb http://archive.raspberrypi.org/debian/ buster main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main ui
#科大源
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main ui