一键更换命令
复制下面的命令粘贴即可
阿里云镜像站
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src http://mirrors.aliyun.com/debian-security/ bookworm-security main
deb http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
EOF
apt update
腾讯云镜像站
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src http://mirrors.tencent.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.tencent.com/debian-security/ bookworm-security main
deb-src http://mirrors.tencent.com/debian-security/ bookworm-security main
deb http://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src http://mirrors.tencent.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src http://mirrors.tencent.com/debian/ bookworm-backports main non-free non-free-firmware contrib
EOF
apt update
网易镜像站
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src http://mirrors.163.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.163.com/debian-security/ bookworm-security main
deb-src http://mirrors.163.com/debian-security/ bookworm-security main
deb http://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src http://mirrors.163.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src http://mirrors.163.com/debian/ bookworm-backports main non-free non-free-firmware contrib
EOF
apt update
华为镜像站
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src http://mirrors.huaweicloud.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb-src http://mirrors.huaweicloud.com/debian-security/ bookworm-security main
deb http://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src http://mirrors.huaweicloud.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src http://mirrors.huaweicloud.com/debian/ bookworm-backports main non-free non-free-firmware contrib
EOF
apt update
清华大学镜像站
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
EOF
apt update
中科大镜像站
cat <<EOF > /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
EOF
apt update
编辑镜像源命令
vi /etc/apt/sources.list
评论区