debian12 修改源为阿里

将/etc/apt/sources.list 写入:

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
# 执行
apt update
# 如果出现证书报错,重新生成证书
apt update --allow-unauthenticated
apt install --reinstall ca-certificates -y
# 再次更新
apt update
posted @ 2025-07-29 11:29  熊先生不开玩笑  阅读(361)  评论(0)    收藏  举报