当前位置: 首页 > news >正文

Debian 10 执行 sudo apt update 报错的解决办法

在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  # 忽略证书警告

 

http://www.sczhlp.com/news/5318/

相关文章:

  • 武器切换和隐藏功能
  • 英语_课本_8A_Unit04_Then and now
  • 图片时间定位修改工具:一键重塑照片时空信息的神器
  • 智能体三强争霸:Coze、Dify、FastGPT谁是企业AI化的最优解?
  • Ubuntu 22.04-字符界面下挂载u盘
  • Android IOS 代码覆盖率实现
  • HomeAssistant 接入国家电网
  • 干货 | 读懂 Appium 日志,让测试效率翻倍!
  • 2025年8月4日
  • VMware安装WIN10系统时报错EFI Network 解决方法
  • 友链
  • OpenCV实战之人脸美颜美型算法
  • 振荡器闪烁相噪学习
  • Mac 禁用 SIP
  • windows11 重启开机后无法找到wifi
  • 自定义我的博客园
  • 封装usehooks监听本地缓存事件触发问题
  • 利用GeminiBalance搭建Gemini API号池
  • linux source命令使用详细介绍 - 教程
  • RNDIS技术解析:USB上网的极速通道
  • kgdb调试
  • 性能调优:troubleshooting slow parse sql on 19.16
  • CF1385F Removing Leaves
  • Markdown入门
  • 当首页没有权限不跳进404页面, 跳进接口菜单list返回的第一个
  • 中电金信多项产品入选信通院“数字金融”产品目录
  • Prometheus+node_exporter+Grafana安装教程
  • 读书笔记:数据库并发控制与多版本机制解析
  • 洛谷题单指南-状态压缩动态规划-P1879 [USACO06NOV] Corn Fields G
  • throw 和 catch 关键字的作用