在Debian 10 系统中,执行 sudo apt update 报错:
忽略:1 http://mirrors.ustc.edu.cn/debian buster InRelease 忽略:2 http://mirrors.ustc.edu.cn/debian-security buster/updates InRelease 忽略:3 http://mirrors.ustc.edu.cn/debian buster-updates InRelease 错误:4 http://mirrors.ustc.edu.cn/debian buster Release404 Not Found [IP: 202.38.95.110 80] 错误:5 http://mirrors.ustc.edu.cn/debian-security buster/updates Release404 Not Found [IP: 202.38.95.110 80] 错误:6 http://mirrors.ustc.edu.cn/debian buster-updates Release404 Not Found [IP: 202.38.95.110 80] 正在读取软件包列表... 完成 E: 仓库 “http://mirrors.ustc.edu.cn/debian buster Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。 E: 仓库 “http://mirrors.ustc.edu.cn/debian-security buster/updates Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。 E: 仓库 “http://mirrors.ustc.edu.cn/debian buster-updates Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
原因是因为Debian10 已停止维护和支持,即使更换国内镜像源也不行。
解决方法是:切换至Debian归档仓库(维持Buster)
适用场景:需保留Debian 10环境,不升级系统。
步骤:
1、修改镜像源为官方全球归档地址:
deb http://archive.debian.org/debian buster main contrib non-free deb http://archive.debian.org/debian-security buster/updates main contrib non-free
2、更新并安装软件:
sudo apt update sudo apt install <软件包名> --allow-unauthenticated # 忽略证书警告
