树莓派替换清华的数据源

小豆苗 1年前 ⋅ 1284 阅读

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

全部评论: 0

    我有话说: