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

相关推荐
fareast_mzh3 天前
Build OpenSSL 1.1.1w from source on Debian 11 (x86_64),
运维·debian
sjh21003 天前
学习笔记之debian的thonny开发(尚未验证)--从stm32裸机到linux嵌入式系统
linux·stm32·嵌入式硬件·debian·硬件工程
机器人梦想家4 天前
如何启动 Linux Debian/Ubuntu 等 SSH 服务器
linux·debian
啊略略wxx6 天前
debian和ubuntu安装python3.8并修改默认python版本
运维·ubuntu·debian
苏寅8 天前
在 debian 12 上安装 mysqlclient 报错
linux·mysql·debian
Kasen's experience12 天前
Debian安装Seafile
docker·debian·seafile
Kasen's experience13 天前
Debian 安装 Nextcloud 使用 MariaDB 数据库 + Caddy + PHP-FPM
debian·mariadb·pve·nextcloud·caddy
丢丢丢丢丢丢~14 天前
在 Debian/Ubuntu 系统上,永久固定网口的IP地址
运维·ubuntu·debian
fareast_mzh14 天前
Running a Snowflake on Debian 11
linux·服务器·debian
ζั͡山 ั͡有扶苏 ั͡✾15 天前
ZooKeeper单节点详细部署流程
分布式·zookeeper·debian