我不得不承认,我怀念在虚拟开发机上将 Debian 9 升级到 10 的时光。现在 Debian 9 已停产。
当我尝试获取必要的升级包时,我得到的只是 404 或 403 错误,因为对 Debian 9 的支持已于 2022 年 6 月结束。
错误:10https://packages.sury.org/php伸展释放 403 禁止
或者
错误:7https://packages.sury.org/php拉伸释放 403 禁止
到目前为止,我做了众所周知的升级例程:
- 将 /etc/apt/sources.list 中的“stretch”的每个实例替换为“buster”
- sudo apt update # 这就是问题开始的地方
- sudo apt 升级
- sudo apt 全面升级
我现在可以做什么来升级到 10(如果需要,甚至可以升级到 11)?我是否必须从第三方获取软件包或升级信息?有没有可能的解决方案?
这是输出须藤apt更新
juergen@masch1:~$ sudo apt update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.hhvm.com/debian jessie InRelease
Get:3 http://ftp.de.debian.org/debian buster InRelease [122 kB]
Get:4 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Hit:5 https://deb.nodesource.com/node_12.x stretch InRelease
Get:6 http://ftp.de.debian.org/debian buster-updates InRelease [56.6 kB]
Ign:7 https://packages.sury.org/php stretch InRelease
Err:8 https://packages.sury.org/php stretch Release
403 Forbidden
Get:9 http://security.debian.org/debian-security buster/updates/main Sources [255 kB]
Get:10 http://security.debian.org/debian-security buster/updates/main
amd64 Packages [347 kB]
Get:11 http://security.debian.org/debian-security buster/updates/main Translation-en [188 kB]
Get:12 http://ftp.de.debian.org/debian buster/main Sources [7843 kB]
Get:13 http://ftp.de.debian.org/debian buster/main amd64 Packages [7911 kB]
Ign:14 http://download.webmin.com/download/repository buster InRelease
Err:15 http://download.webmin.com/download/repository buster Release
404 Not Found [IP: 104.207.151.13 80]
Get:16 http://ftp.de.debian.org/debian buster/main Translation-en [5969 kB]
Get:17 http://ftp.de.debian.org/debian buster/main Translation-de [1654 kB]
Get:18 http://ftp.de.debian.org/debian buster/main Translation-de_DE [830 B]
Get:19 http://ftp.de.debian.org/debian buster-updates/main Sources [4616 B]
Get:20 http://ftp.de.debian.org/debian buster-updates/main amd64 Packages [8788 B]
Get:21 http://ftp.de.debian.org/debian buster-updates/main Translation-en [6915 B]
Reading package lists... Done
E: The repository 'https://packages.sury.org/php 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://download.webmin.com/download/repository buster 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.
答案1
显示的错误apt update
仅涉及第三方存储库。你至少应该:
- 检查他们是否提供对 Debian 10 的支持
- 更新存储库描述以
/etc/apt/sources.list.d
引用buster
而不是stretch
事实上,您已经更新了 Debian 10 的存储库索引,因此您应该能够升级(至少,看看是什么apt upgrade
决定了 — 它会告诉您它想要做什么,并让您有机会在它实际执行之前停止) )。然而,您可能会遇到第三方软件包的问题,在某些情况下,您必须删除受影响的第三方软件包才能成功升级到 Debian 10。