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 Release
  404  Not Found [IP: 211.93.250.32 80]
Err:6 http://mirrors.aliyun.com/debian-security stretch/updates Release
  404  Not Found [IP: 211.93.250.32 80]
Err:7 http://mirrors.aliyun.com/debian stretch-updates Release
  404  Not Found [IP: 211.93.250.32 80]
Err:8 http://mirrors.aliyun.com/debian stretch-backports Release
  404  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

相关推荐
欧云服务器5 天前
怎么让脚本命令可以同时在centos、debian、ubuntu执行?
ubuntu·centos·debian
~远在太平洋~5 天前
Debian系统如何删除多余的kernel
linux·网络·debian
~远在太平洋~5 天前
debian系统已安装python3.12却无法执行python命令
chrome·python·debian
木子欢儿8 天前
在 Debian 13(以及 12)上安装和配置 tightvncserver 并让普通用户使
运维·前端·debian
l1t15 天前
在debian 13.1容器中安装使用redrock postgresql
运维·postgresql·debian
木子欢儿16 天前
debian 13 安装配置ftp 创建用户admin可以访问 /mnt/Data/
linux·运维·服务器·数据库·debian
地球空间-技术小鱼16 天前
搜罗Linux桌面环境(Desktop Environments)列表
linux·运维·服务器·笔记·学习·ubuntu·debian
木子欢儿17 天前
Debian挂载飞牛OS创建的RAID分区和Btrfs分区指南
运维·debian
市安18 天前
基于Debain构建Ngxin镜像
运维·nginx·docker·云原生·容器·debian·镜像
henry10101018 天前
Debian/Ubuntu EC2实例上一键部署WireGuard
ubuntu·云计算·debian·aws