第一件事通常是树莓派装后的第一件事apt update和apt upgrade,默认情况下,您需要将其联系到覆盆子派的官方服务器上下载和更新。我不知道你的网络情况如何。不管怎样,我家的电信网络是那种忍者龟受不了的那种。(总之,神奇的是,使用以前单位的联通网络非常快,我不明白。
我在网上找到了一圈信息,大多数人推荐清华镜像。但我不知道我是否理解有问题,导致配置文件错误。一方面,速度仍然不理想,另一方面,会有错误,如404或证书。最后,参考官方镜像列表(RaspbianMirrors - Raspbian),并结合一些比较新的资料,最终选择南京大学的源作为新源配置。
很简单,只需编辑两个文件,不需要额外的服务或整机重启。
第一个文件,/etc/apt/sources.list。注释所有句子,然后添加:
deb https://mirror.nju.edu.cn/debian/ bullseye main contrib non-free deb https://mirror.nju.edu.cn/debian-security/ bullseye-security main contrib non-free deb https://mirror.nju.edu.cn/debian bullseye-updates main contrib non-free
第二个文件,/etc/apt/sources.list.d/raspi.list
deb https://mirror.nju.edu.cn/raspberrypi/debian/ bullseye main
然后测试:
sudo apt update sudo apt upgrade
快速下载,成功更新。apt install 其可以快速完成其他软件。