Debian12更换阿里源source.list

2025-03-08 10:37 Debian12更换阿里源source.list已关闭评论

1.备份

mv /etc/apt/sources.list /etc/apt/sources.list.bk

2.添加源信息

cat > /etc/apt/sources.list << 'EOF'
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
EOF

3.验证

cat /etc/apt/sources.list

4.刷新源

sudo apt-get update

版权声明:本文著作权归原作者所有,欢迎分享,谢谢支持!
转载请保留注明:Debian12更换阿里源source.list | DPIP知识库
分类:Debian 标签:

评论已关闭!