dch0

1、修改配置文件

修改/etc/apt/sources.list

#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

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

修改/etc/apt/sources.list.d/raspi.list

#deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then \'apt-get update\' to enable \'apt-get source\'
#deb-src http://archive.raspberrypi.org/debian/ buster main

deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

2、同步源

执行命令

apt update

 

分类:

技术点:

相关文章: