夸克之书

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

树莓派bullseye换源

2019-08-24 14736点热度 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
    分类
    • .NET/C#
    • Linux
    • 树莓派
    • 物联网
    • 科普
    • 笔记
    • 算法
    • 默认
    最新 热点 随机
    最新 热点 随机
    维持宇宙的四种“力量”——关于四大基本力 MinGW图形安装界面里面没有mingw32 make.exe解决办法 Windows Server 2022安装Intel I225-V/I226-V驱动 System.Text.Json与Newtonsoft.Json Json序列化与反序列化性能对比 R86S散热改造 Windows移除多余输入法'Unknown Locale (qaa-Latn)'
    Windows Server 2022安装Intel I225-V/I226-V驱动MinGW图形安装界面里面没有mingw32 make.exe解决办法维持宇宙的四种“力量”——关于四大基本力
    23种常见的设计模式(3):抽象工厂模式 C# Json序列化时将长整型(long)属性序列化为Json字符串 23种常见的设计模式(5):建造者模式 将对象转化为Get请求字符串 解决Github pull和push慢 ASP MVC设置Cookie
    最近评论
    afirefish 发布于 4 个月前(11月28日) 非常感谢,非常棒!
    》随缘《 发布于 4 个月前(11月20日) 最新【一键处理】方法: https://github.com/MrXhh/VSTools/rele...
    管理员 发布于 9 个月前(06月22日) emmmm....服务器好一点???
    wking 发布于 10 个月前(05月23日) 请问贵博客是怎么优化的,网页响应速度非常快。我博客同样的WordPress和kratos主题,但点一...
    去月球 发布于 1 年前(01月17日) 如果使用CSI的摄像头应该怎么修改命令呢
    书签
    • 打赏
    • 毒鸡汤
    • 米店
    • 金鱼直播间

    COPYRIGHT © 2022 quarkbook.com. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    蜀ICP备15036129号-9

    登录
    注册|忘记密码?