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

相关推荐
无效的名字1 天前
向日葵远程控制debian无法进入控制画面的解决方法
运维·debian
belldeep4 天前
WSL 安装 Debian 12 后,Linux 如何安装 curl , quickjs ?
linux·运维·debian·curl·quickjs
l1t4 天前
Debian上安装PostgreSQL的故障和排除
运维·postgresql·debian
后端木木4 天前
一键 Ubuntu、Debian、Centos 换源(阿里源、腾讯源等)
ubuntu·centos·debian
ergevv5 天前
在 RK3588 上通过 VSCode 远程开发配置指南
vscode·debian·ssh·rk3588·远程开发
XMAIPC_Robot6 天前
基于 NXP + FPGA+Debian 高可靠性工业控制器解决方案
运维·人工智能·fpga开发·debian·边缘计算
行之文10 天前
Debian 11之解决daemon.log与syslog文件占用空间过大问题
运维·debian
行之文10 天前
Debian 11 之使用hostapd与dnsmasq进行AP设置
运维·网络·debian
sz66cm14 天前
Docker基础 -- 构建 RK3588 Debian 根文件系统
docker·容器·debian
darkchink14 天前
[BUG]Debian/Linux操作系统中 安装 curl等软件显示无候选安装(E: 软件包 curl 没有可安装候选)
linux·运维·服务器·debian·bug