树莓派4B更新国内源(多个源版本)
查看系统版本
在命令窗口中输入:
lsb_release -a
这里使用的版本是buster
,如果版本不对的话此教程就只能做参考
修改源
修改/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阿里源
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib
修改:/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
更新
最后:
sudo apt-get update
sudo apt-get upgrade
还没有评论,来说两句吧...