
Debian 10(buster)已停止维护,其软件包已从官方源和国内镜像下架,统一移至 archive.debian.org。本文介绍如何修改 /etc/apt/sources.list,改用归档源。
修改方法
编辑 /etc/apt/sources.list 文件,将原有内容替换为下面的归档源配置(建议先备份原文件):
deb http://archive.debian.org/debian buster main contrib non-free
deb http://archive.debian.org/debian buster-updates main contrib non-free
deb http://archive.debian.org/debian buster-backports main contrib non-free
deb http://archive.debian.org/debian-security buster/updates main contrib non-free
deb-src http://archive.debian.org/debian buster main contrib non-free
deb-src http://archive.debian.org/debian buster-updates main contrib non-free
deb-src http://archive.debian.org/debian buster-backports main contrib non-free
deb-src http://archive.debian.org/debian-security buster/updates main contrib non-free
注意事项
替换完成后运行 sudo apt update 更新软件包索引,确认没有报错,再用新源安装软件。注意:buster 已停更,不再有安全更新,归档源只用于给旧系统装软件;能升级到新版本 Debian 的,尽量升级。