侧边栏壁纸
博主头像
dsmggm 博主等级

行动起来,活在当下

  • 累计撰写 28 篇文章
  • 累计创建 1 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

debian12镜像源

dsmggm
2025-03-11 / 0 评论 / 0 点赞 / 9 阅读 / 0 字

一键更换命令

复制下面的命令粘贴即可

阿里云镜像站

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
0

评论区