树莓派的默认源和更换为国内源

绝地灬酷狼 2024-02-05 21:59 101阅读 0赞

首先大家一定要记得备份默认源,有的更换国内源后导致系统无法正常更新需要恢复,默认源为

deb Index of /raspbian buster main contrib non-free rpi

# Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’

deb-src Index of /raspbian buster main contrib non-free rpi

如果您想将树莓派更换为清华源则可以编辑/etc/apt/sources.list里面内容为

deb Index of /raspbian/raspbian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror buster main contrib non-free rpi

deb-src Index of /raspbian/raspbian/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror buster main contrib non-free rpi

如果想换成阿里云源可以su改成

deb raspbian-raspbian安装包下载_开源镜像站-阿里云 buster main contrib non-free rpi

deb-src raspbian-raspbian安装包下载_开源镜像站-阿里云 buster main contrib non-free rpi

发表评论

表情:
评论列表 (有 0 条评论,101人围观)

还没有评论,来说两句吧...

相关阅读