其他分享
首页 > 其他分享> > 树莓派替换国内软件源(基于Debian11 - bullseye版本)

树莓派替换国内软件源(基于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

标签:树莓,etc,sudo,list,apt,sources,bullseye,Debian11
来源: https://www.cnblogs.com/greene/p/15810898.html