当前位置: 首页 > 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

http://www.lryc.cn/news/225251.html

相关文章:

  • 遍历List集合和Map进行修改和删除报java.util.ConcurrentModificationException错误详解
  • Android从一个APP跳转到另外一个APP
  • 我的创作纪念日——创作者2年
  • 大数据之LibrA数据库系统告警处理(ALM-12032 ommdba用户或密码即将过期)
  • C_3练习题
  • CentOS7 安装Jenkins 2.414.3 详细教程
  • chatglm3-6b记录问答对
  • k8s ingress 代理 mysql 3306端口
  • Informix管理共享内存
  • Webpack 中 Plugin 的作用是什么?常用 plugin 有哪些?
  • CSRF(跨站请求伪造)攻击演示
  • 图解三傻排序 选择排序、冒泡排序、插入排序
  • 【数据结构】树与二叉树(六):二叉树的链式存储
  • 后端Java日常实习生面试(2023年11月10日)
  • 使用iperf3在macOS上进行网络性能测试
  • 09-MySQL主从复制
  • virtualBox虚拟机局域网访问配置
  • IDEA高效编程快捷键
  • nginx实现vue和后端的双机负载
  • ARMday03(寄存器读写、栈、程序状态寄存器、软中断和异常、混合编程)
  • Excel中功能区的存放位置很灵活,可以根据需要隐藏或显示
  • HelloGitHub 社区动态,开启新的篇章!
  • 【学术综述】-如何写出一篇好综述-写好综述要注意的问题
  • ClickHouse介绍和使用
  • 数码管动态扫描
  • Webpack 中 loader 的作用是什么?常用 loader 有哪些?
  • c#,字段和属性的区别
  • ideal一键部署SpringBoot项目jar包到服务器
  • 宝塔部署QQ机器人,提示OpenSSL 1.0.2k-fips 26 Jan 2017
  • K8S篇之简述K8S底层原理