树莓派4B更新国内源(多个源版本)

「爱情、让人受尽委屈。」 2022-12-02 00:42 471阅读 0赞

查看系统版本

在命令窗口中输入:

  1. 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,去掉自带的源,添加如下源:

  1. deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
  2. deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

更新

最后:

  1. sudo apt-get update
  2. sudo apt-get upgrade

发表评论

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

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

相关阅读