你可以将 /etc/apt/sources.list
文件中的官方源地址替换为下面的源地址。请根据你的 Debian 版本(如 bullseye、buster 等)选择合适的源,并确保 non-free
部分(如果有)也在源地址中保留,因为有些非免费软件包也可能在国内镜像中提供。更新源后,运行sudo apt update && sudo apt upgrade
来更新软件包列表。
Debian 官方源
deb http://deb.debian.org/debian bookworm main
deb-src http://deb.debian.org/debian bookworm main
deb http://deb.debian.org/debian bookworm-updates main
deb-src http://deb.debian.org/debian bookworm-updates main
deb http://security.debian.org/ bookworm-security main
deb-src http://security.debian.org/ bookworm-security main
阿里云
deb http://mirrors.aliyun.com/debian/ bookworm main non-free contrib
deb http://mirrors.aliyun.com/debian-security bookworm/updates main
deb http://mirrors.aliyun.com/debian/ bookworm-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ bookworm-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security bookworm/updates main
deb-src http://mirrors.aliyun.com/debian/ bookworm main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-backports main non-free contrib
163网易
deb http://mirrors.163.com/debian/ bookworm main non-free contrib
deb http://mirrors.163.com/debian/ bookworm-updates main non-free contrib
deb http://mirrors.163.com/debian/ bookworm-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ bookworm/updates main non-free contrib
deb-src http://mirrors.163.com/debian/ bookworm main non-free contrib
deb-src http://mirrors.163.com/debian/ bookworm-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ bookworm-backports main non-free contrib
deb-src http://mirrors.163.com/debian-security/ bookworm/updates main non-free contrib
腾讯云
deb http://mirrors.cloud.tencent.com/debian/ bookworm main non-free contrib
deb http://mirrors.cloud.tencent.com/debian-security bookworm/updates main
deb http://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free contrib
deb http://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian-security bookworm/updates main
deb-src http://mirrors.cloud.tencent.com/debian/ bookworm main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ bookworm-updates main non-free contrib
deb-src http://mirrors.cloud.tencent.com/debian/ bookworm-backports main non-free contrib
华为云
deb https://mirrors.huaweicloud.com/debian/ bookworm main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ bookworm-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ bookworm-backports main contrib non-free
deb https://mirrors.huaweicloud.com/debian-security/ bookworm/updates main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ bookworm main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-updates main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ bookworm-backports main contrib non-free
中科大
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ bookworm/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm/updates main contrib non-free
清华大学
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm/updates main contrib non-free
兰州大学
deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb http://mirror.lzu.edu.cn/debian/ bookworm-backports main contrib non-free
deb http://mirror.lzu.edu.cn/debian-security/ bookworm/updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian/ bookworm-backports main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian-security/ bookworm/updates main contrib non-free
上海交大
deb https://mirror.sjtu.edu.cn/debian/ bookworm main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ bookworm-updates main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ bookworm-backports main contrib non-free
deb https://mirror.sjtu.edu.cn/debian-security/ bookworm/updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ bookworm-updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ bookworm-backports main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ bookworm main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian-security/ bookworm/updates main contrib non-free
正文完