无法更新 APT 列表:“存储库不再有发布文件”

giu*_*sti 49 debian apt

我无法运行,apt-get update因为我遇到以下错误:

# apt-get update
Hit:1 http://ftp.br.debian.org/debian testing InRelease
Ign:2 http://security.debian.org/debian-security testing/updates InRelease
Err:3 http://security.debian.org/debian-security testing/updates Release
  404  Not Found [IP: 151.101.92.204 80]
Reading package lists... Done
E: The repository 'http://security.debian.org/debian-security testing/updates Release' no longer has 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: Repository 'http://ftp.br.debian.org/debian testing InRelease' changed its 'Codename' value from 'buster' to 'bullseye'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Run Code Online (Sandbox Code Playgroud)

所以这里有两条错误信息:

  1. 存储库不再有 Release 文件,这很奇怪。我在http://security-cdn.debian.org/debian-security/zzz-dists/testing/updates/ ant检查它看起来像 Release 文件在那里。我是不是找错地方了,还是有其他事情发生?
  2. 存储库将其名称从 更改为busterbullseye并且“必须明确接受”(我今天看到了一次;当我打开问题时它不在那里并且不再出现)。这并不奇怪,但我没想到如果我跟踪存储库testing而不是发布名称会出现问题。

我能做什么?APT 告诉我阅读apt-secure(8),但它要么没有我需要的信息,要么我无法理解。

小智 56

更改testing/updatestesting-security您的sources.list匹配http://security-cdn.debian.org/debian-security/dists/testing-security/

然后运行apt update而不是apt-get update交互地接受各种更改。

根据这篇reddit 帖子,这个存储库名称更改是在版本 10 中引入的。

  • 我想知道 `apt` 和 `apt-get` 已经有很长时间了。这让我终于查了一下。[`apt` 是对最终用户进行包管理的首选方式。](https://itsfoss.com/apt-vs-apt-get-difference/) (2认同)

小智 21

如果你从测试升级到 buster,也一定要运行

apt-get update --allow-releaseinfo-change

如果没有,apt-get update则不会让您使用 Buster 进行更新,并且会吐出如下消息:

N: Repository ' http://deb.debian.org/debian buster InRelease' 将它的 'Version' 值从 '' 改为 '10.0'

E: Repository ' http://deb.debian.org/debian buster InRelease' 将它的 'Suite' 值从 'testing' 改为 'stable'

N:在应用此存储库的更新之前,必须明确接受这一点。有关详细信息,请参阅 apt-secure(8) 联机帮助页。

N:存储库“ http://security.debian.org/debian-security buster/updates InRelease”将其“版本”值从“”更改为“10”

E: Repository ' http://security.debian.org/debian-security buster/updates InRelease' 将它的 'Suite' 值从 'testing' 更改为 'stable' N:在此存储库的更新可以更新之前,必须明确接受这一点应用。有关详细信息,请参阅 apt-secure(8) 联机帮助页。


tel*_*coM 12

根据7 月 1 日发布的 Debian 项目新闻, Debian 10 “Buster”计划于 2019 年7 月 6 日测试版过渡到稳定版。

看起来转换实际上是按计划进行的,因此测试发行版现在应该赶上不稳定的版本,最终成为 Debian 11“Bullseye”。由于 Debian 镜像的这种转换,您可能会遇到一些暂时的副作用。

如果您想继续使用 Debian 10 “Buster”,现在是切换/etc/apt/sources.list使用发行版名称buster而不是testing.

否则,您很快就会从不稳定中获得原始的前沿内容,并且您可能会意外地获得对原型“Bullseye”的部分升级。

此外,这也是提醒任何使用该词stable/etc/apt/sources.list人考虑是否将其更改为stretch并保留旧版本,或阅读发行说明并执行推荐的升级步骤。

  • 在 2019-07-06 之前,*testing* 表示 Debian 10;现在它意味着 Debian 11。如果您想继续使用迄今为止一直在使用的 Debian 10,您应该将“sources.list”中的“testing”一词更改为“buster”**马上**。另一方面,如果你真的想成为 Debian 11 sprint 的先锋,不要改变任何东西。也许等一两周,让最坏的风暴过去,监视适当的 Debian 邮件列表,然后运行 ​​`apt full-upgrade` 看看会发生什么。如果有什么东西坏了,请制作好的错误报告。您将在 Debian 11 开始成形时对其进行测试! (2认同)

小智 6

运行apt update并接受更改(每次询问时键入 y)。它将进行所有必需的更改。