LZC.app's Blog

Raspberry Pi OS更换为阿里云源

Debian源

编辑/etc/apt/sources.list文件:

sudo nano /etc/apt/sources.list

将文件内容替换为:

deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib

Raspberry Pi OS源

编辑/etc/apt/sources.list.d/raspi.list文件:

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

将文件内容替换为:

deb http://mirrors.aliyun.com/raspberrypi/ bullseye main
deb-src http://mirrors.aliyun.com/raspberrypi/ bullseye main