Debian 9(EOL)をDebian 10にアップグレードする方法

Debian 9(EOL)をDebian 10にアップグレードする方法

認めなければなりません。仮想開発マシンでDebian 9を10にアップグレードするのが恋しいです。 Debian 9 は現在中断されました。

必要なアップグレードパッケージを入手しようとすると、2022年6月にDebian 9のサポートが終了するため、404エラーまたは403エラーのみが表示されます。

エラー:10https://packages.sury.org/phpストレッチリリース403禁止

または

エラー:7https://packages.sury.org/phpストレッチリリース403禁止

これまで私はよく知られているアップグレードルーチンを実行しました。

  1. /etc/apt/sources.list で「stretch」のすべてのインスタンスを「buster」に置き換えます。
  2. sudo apt update# ここで問題が始まります。
  3. sudo 適切なアップグレード
  4. sudo apt 包括的なアップグレード

10(または必要に応じて11)にアップグレードするには、今何をすべきですか?第三者からパッケージまたはアップグレード情報を受け取る必要がありますか?考えられる解決策はありますか?

これが出力ですsudo 適切なアップデート

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参照できるようにリポジトリの説明を更新してください。busterstretch

実際にDebian 10のリポジトリインデックスを更新したので、アップグレードできる必要があります(少なくとも何がapt upgrade決まっているのかを確認してください。これを行う必要があることを知らせ、実際に実行する前に停止する機会を提供します))。ただし、サードパーティのパッケージに問題が発生する可能性があり、場合によってはDebian 10に正常にアップグレードするには、影響を受けるサードパーティのパッケージを削除する必要があります。

おすすめ記事