夸克之书

  • 首页
  • 科普
  • 笔记
  • C#
  • 物联网
  • 算法
  • Linux
  • 树莓派
夸克之内,别有洞天
  1. 首页
  2. 树莓派
  3. 正文

树莓派bullseye换源

2019-08-24 12415点热度 5人点赞 2条评论

树莓派在国内更新软件源很慢,可以更换为国内的软件源。

1、更新/etc/apt/sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk
sudo nano /etc/apt/sources.list

替换为以下内容(或者注释之前的,然后追加)

# ARM(32位系统)
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ bullseye main contrib non-free rpi
# deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ bullseye main contrib non-free rpi

# ARM64(64位系统)
# Arm64 架构的 Raspberry Pi OS 仍处于 beta 状态,中科大源亦不含此架构。对于 arm64 的 Raspberry Pi OS,可以直接使用 arm64 Debian 的源(以 Bullseye 示例):
deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main non-free contrib
%title插图%num
sources.list

2、更新/etc/apt/sources.list.d/raspi.list

sudo nano /etc/apt/sources.list.d/raspi.list

替换为以下内容(或者注释之前的,然后追加)

# ARM(32位系统)
deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main
#deb-src https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main


# ARM64(64位系统)
deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main
#deb-src https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main
%title插图%num
raspi.list

3、更新

依次输入以下命令进行更新。

sudo apt update && sudo apt dist-upgrade

如果需要单独更新EEPROM可以参考:传送门

如果apt update出现错误:The following signatures couldn't be verified because the public key is not available: NO_PUBKEY xxxxxxxxxxxxxxxxxxx

使用以下命令添加KEY:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com xxxxxxxxxxxxxxxxxxx
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: 暂无
最后更新:2022-01-25

afirefish

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

  • Billion

    树莓派64位换源以后可能下不了软件,想知道博主有没有解决的办法

    2020-10-03
    登录以回复
    • oh2e

      @Billion 64位镜像可以直接使用debian的系统源,首先需要编辑/etc/apt/sources.list,使用#号注释原内容,然后在末尾添加Debian的系统源:

      # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
      deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
      deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
      deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
      deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
      # deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
      接着需要配置树莓派官方的软件源,编辑/etc/apt/sources.list.d/raspi.list,同样的,注释原内容,在末尾添加如下内容:

      deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

      系统源和软件源配置完成以后,使用下述两条命令更新:

      sudo apt update
      sudo apt upgrade -y

      2020-11-02
      登录以回复
  • 您需要 登录 之后才可以评论
    放松一下
    https://www.quarkbook.com/wp-content/uploads/2021/05/凤凰传奇-海底(Live).flac
    分类
    • C#
    • Linux
    • 树莓派
    • 物联网
    • 科普
    • 笔记
    • 算法
    • 默认
    最新 热点 随机
    最新 热点 随机
    System.Text.Json与Newtonsoft.Json Json序列化与反序列化性能对比 R86S散热改造 Windows移除多余输入法'Unknown Locale (qaa-Latn)' 【算法】具有层级关系的城市,例如"中国 广州","中国 浙江 杭州" 一个 List 最后应该是转成树状图输出 树莓派安装Golang环境 树莓派 Zero USB/以太网方式连接配置教程
    Windows移除多余输入法'Unknown Locale (qaa-Latn)'【算法】具有层级关系的城市,例如"中国 广州","中国 浙江 杭州" 一个 List 最后应该是转成树状图输出R86S散热改造System.Text.Json与Newtonsoft.Json Json序列化与反序列化性能对比
    安装ESP8266的Arduino开发环境 Vieu主题作者疑似跑路?这人品?!!! 解决Github pull和push慢 宿主机不能Ping通虚拟机中的Windows Server ESXi 6.7 切换时区(已经确认无效) 智能语音控制中心 - 树莓派、Nanopi、Orangepi语音识别控制
    最近评论
    wking 发布于 3 个月前(05月24日) 请问贵博客是怎么优化的,网页响应速度非常快。我博客同样的WordPress和kratos主题,但点一...
    去月球 发布于 7 个月前(01月18日) 如果使用CSI的摄像头应该怎么修改命令呢
    Me 发布于 7 个月前(12月31日) 好像还得写启动项 要不重启就还原了。
    十三 发布于 8 个月前(12月23日) 大神,网盘链接失效了,重新分享一下吧,
    一键快乐 发布于 1 年前(07月09日) 老哥 我替换之后能进去了但是网络和声音上有两个×怎么办
    书签
    • 打赏
    • 毒鸡汤
    • 米店
    • 金鱼直播间

    COPYRIGHT © 2022 quarkbook.com. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    蜀ICP备15036129号-9

    登录
    注册|忘记密码?