1

我正在尝试在我的笔记本电脑上更新我的 debian 伸展。当我运行这个命令

apt-get update && apt-get upgrade

它显示以下输出

Reading package lists... Done                                                                                                                  
E: The repository 'http://ftp.us.debian.org/debian stretch Release' does no longer 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://ftp.us.debian.org/debian stretch-updates Release' does no longer 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.

这是我的sources.list

deb http://ftp.us.debian.org/debian/ stretch main
deb-src http://ftp.us.debian.org/debian/ stretch main

deb http://ftp.us.debian.org/debian/ stretch-updates main contrib
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib

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

1 回答 1

0

正如 apt-secure 联机帮助页中所述:

Starting with version 0.6, APT contains code that does signature checking of the Release file for all repositories.

这意味着如果apt无法验证签名,它将无法继续。--allow-unauthenticated仅当您像这样在 apt 中指定时,它才会更新:

sudo apt-get --allow-unauthenticated update

于 2019-03-07T01:06:47.457 回答