树莓派4B换源
备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
更改系统源文件
sudo vim /etc/apt/sources.list
把原有的注释掉,添加
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
更新软件列表和软件
sudo apt-get update
sudo apt-get upgrade
更改系统源
sudo vim /etc/apt/sources.list.d/raspi.list
同样注释掉原内容,添加上
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
刚更新到了最新版本
树莓派4B换源
https://xinhaojin.github.io/2021/01/06/树莓派4b换源/