树莓派替换国内软件源(基于Debian11 - bullseye版本)

镜像包为 https://mirrors.aliyun.com/raspberry-pi-os-images/raspios_lite_armhf/images/raspios_lite_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf-lite.zip

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list

将原文件内容替换成如下:

deb [arch=armhf] http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
sudo vim /etc/apt/sources.list.d/raspi.list

将原文件内容替换成如下:

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

更新源

sudo apt-get update
上一篇:xshell破解和使用


下一篇:xshell使用rz命令 乱码 如何删除