树莓派设置清华源

树莓派清华源的设置

当前系统版本为bullseye

树莓派如何查看系统版本信息

sudo lsb_release -a

树莓派版本信息
红框中部分即为当前系统版本代号
系统版本不一样按照下面提示修改

sudo nano /etc/apt/sources.list

将内容注释,添加

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

注意 链接后面紧跟 系统版本 和 其他信息,如果系统不一样,把bullseye改为你的系统版本,可以根据链接仿照文件中自带的链接配置写

control s保存
control x退出
sudo nano /etc/apt/sources.list.d/raspi.list

将内容注释,添加

deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main

这里的系统版本信息的更改方式和上面一样

换完源更新一下

sudo apt-get update
sudo apt-get upgrade
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值