Debian:存储库没有发布文件

Debian:存储库没有发布文件

每当尝试从源代码安装某些程序或专门运行 apt update 时,我都会收到以下消息:

E: The repository 'http://ftp.ca.debian.org/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.

添加架构 i386 后我开始得到这个。如果没有它,我将无法安装专有的 Nvidia 驱动程序,Steam 客户端根本无法启动。这是我/etc/apt/sources.list读到的:

deb http://ftp.ca.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ stretch main contrib non-free

deb http://ftp.ca.debian.org/debian/ stretch/updates main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ stretch/updates main contrib non-free

####stretch-updates, previously known as 'volatile'

deb http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free

deb-src http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free

答案1

你已经有了 和stretch-updatesstretch/updates但后者不再存在(至少在你使用的镜子上)。您应该删除对 的引用stretch/updates,或者 — 如果您希望这些stretch/updates行提供安全更新 —将它们替换为

德布http://security.debian.org/拉伸/更新主要贡献非免费

2023 年 4 月下旬,Stretch 存储库已从主镜像中删除,因此您需要切换到archive.debian.org;看从 maven:3.5.2-jdk-8 构建 dockerfile 时,apt-get update 无法获取 debian amd64 软件包Debian Stretch 的安全存储库不再工作详情:

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

答案2

运行以下命令,它应该被修复

echo "deb http://archive.debian.org/debian stretch main contrib non-free" > /etc/apt/sources.list

或者通过运行以下命令将存储库网站更改deb.debian.org为:archive.debian.org

sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list

如果也有安全性(security.debian.org),那么:

sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list

原因

相关内容