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

Debian 9 Stretch APT问题

Debian 9 Stretch APT问题

flyfish

操作系统

Debian 9 Stretch

错误提示

使用sudo apt update错误提示

Ign:1 http://mirrors.aliyun.com/debian stretch InRelease
Ign:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease
Ign:3 http://mirrors.aliyun.com/debian stretch-updates InRelease
Ign:4 http://mirrors.aliyun.com/debian stretch-backports InRelease
Err:5 http://mirrors.aliyun.com/debian stretch Release404  Not Found [IP: 211.93.250.32 80]
Err:6 http://mirrors.aliyun.com/debian-security stretch/updates Release404  Not Found [IP: 211.93.250.32 80]
Err:7 http://mirrors.aliyun.com/debian stretch-updates Release404  Not Found [IP: 211.93.250.32 80]
Err:8 http://mirrors.aliyun.com/debian stretch-backports Release404  Not Found [IP: 211.93.250.32 80]
Reading package lists... Done
E: The repository 'http://mirrors.aliyun.com/debian stretch Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.aliyun.com/debian-security stretch/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.aliyun.com/debian stretch-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://mirrors.aliyun.com/debian stretch-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

错误原因

Debian 9 Stretch 生命周期结束

解决方法

如果您需要访问 Debian 的一个旧发行版,您可以在 Debian 归档中找到它们

如果您正在使用 APT,则相关的 sources.list 条目如下所示

deb http://archive.debian.org/debian/ hamm contrib main non-free
或者
deb http://archive.debian.org/debian/ bo bo-unstable contrib main non-free

所以/etc/apt/sources.list正确的写法如下

deb http://archive.debian.org/debian/ stretch main contrib non-free
deb-src http://archive.debian.org/debian/ stretch main contrib non-free
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://archive.debian.org/debian/ stretch-backports main contrib non-free

参考地址

https://www.debian.org/distrib/archive.en.html

相关文章:

  • 接口测试及常用接口测试工具
  • 前端小技巧: 数组reduce方法的五种常见用途
  • 矢量图形编辑软件Boxy SVG mac中文版软件特点
  • Python制作国旗头像
  • 深度学习之pytorch第一课
  • 烟草5G智慧工厂数字孪生可视化平台,赋能烟草工业数字化智慧转型
  • 30基于Feign远程调用
  • golang工程组件——redigo使用(redis协议,基本命令,管道,事务,发布订阅,stream)
  • Spring-AOP不生效之内部方法调用
  • 【Android】画面卡顿优化列表流畅度一
  • uboot - 驱动开发 - dw watchdog
  • 无梯度强化学习:使用遗传算法进化代理
  • 【服务配置文件详解】补充rsyslog服务的配置文件翻译解读
  • 【hcie-cloud】【5】华为云Stack规划设计之华为云Stack标准化配置、缩略语【下】
  • 前端Vue 结合xlxs库实现解析excel文件,并动态组装表头!
  • [微信小程序] 使用ES6特性Class后出现编译异常
  • es6(二):字符串的扩展
  • exif信息对照
  • KMP算法及优化
  • Median of Two Sorted Arrays
  • MQ框架的比较
  • Promise面试题,控制异步流程
  • session共享问题解决方案
  • Webpack4 学习笔记 - 01:webpack的安装和简单配置
  • 安装python包到指定虚拟环境
  • 纯 javascript 半自动式下滑一定高度,导航栏固定
  • 离散点最小(凸)包围边界查找
  • 如何使用Mybatis第三方插件--PageHelper实现分页操作
  • 如何在 Tornado 中实现 Middleware
  • 使用API自动生成工具优化前端工作流
  • 一天一个设计模式之JS实现——适配器模式
  • 翻译 | The Principles of OOD 面向对象设计原则
  • #DBA杂记1
  • #基础#使用Jupyter进行Notebook的转换 .ipynb文件导出为.md文件
  • (01)ORB-SLAM2源码无死角解析-(66) BA优化(g2o)→闭环线程:Optimizer::GlobalBundleAdjustemnt→全局优化
  • (7)STL算法之交换赋值
  • (C)一些题4
  • (九)c52学习之旅-定时器
  • (删)Java线程同步实现一:synchronzied和wait()/notify()
  • (十八)SpringBoot之发送QQ邮件
  • (学习日记)2024.01.19
  • *setTimeout实现text输入在用户停顿时才调用事件!*
  • .net core MVC 通过 Filters 过滤器拦截请求及响应内容
  • .NET Framework与.NET Framework SDK有什么不同?
  • .Net IE10 _doPostBack 未定义
  • .net 写了一个支持重试、熔断和超时策略的 HttpClient 实例池
  • .NET/C# 使窗口永不获得焦点
  • .Net程序猿乐Android发展---(10)框架布局FrameLayout
  • .net反编译的九款神器
  • .NET开源全面方便的第三方登录组件集合 - MrHuo.OAuth
  • .NET运行机制
  • .stream().map与.stream().flatMap的使用
  • @entity 不限字节长度的类型_一文读懂Redis常见对象类型的底层数据结构
  • @RequestBody与@ModelAttribute
  • @Service注解让spring找到你的Service bean