Debian 9 を最新バージョンにアップデートする際に問題があります。

Debian 9 を最新バージョンにアップデートする際に問題があります。

私は主にWebサービス(php5を含むApache)、メール、およびVPNを実行する匿名ルートサーバーを持っています。これで、信頼性が高くサポートされているシステムバージョンにアップデートしたときです。

フォローするDebian アップグレード文書しかし、私のシステムはまだ「eth0」を使用していますが、ファイルがないため、/etc/udev/rules.d/70-persistent-net.rules進行方法さえ知らないなどのマイナーな(?)問題が発生しました。

今はこれを無視すると仕事をすることはできませんapt update。少し読んだ後、私はこれを思い出しました/etc/apt/sources.list

deb [trusted=yes] http://archive.debian.org/debian stretch main contrib non-free
deb [trusted=yes] http://security.debian.org/debian-security stretch/updates contrib main non-free

/etc/apt/sources.list.d/backports.list次のように変更したファイルもあります。

deb [trusted=yes] http://archive.debian.org/debian stretch-backports main

apt updateその後、数十行がリストされ、次のようになりIgn: …ます。

Err:3 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages
  404  Not Found [IP: 199.232.190.132 80]

次に終わります:

Reading package lists... Done                     
E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/contrib/binary-amd64/Packages  404  Not Found [IP: 199.232.190.132 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

修正する

"debian-security"ソースリンクを変更した後、次のリストを使用してバスターで更新しようとしました。

deb http://ftp.de.debian.org/debian buster main contrib non-free
deb http://ftp.de.debian.org/debian buster-updates main contrib non-free
#deb http://ftp.de.debian.org/debian buster-backports main contrib non-free
deb http://security.debian.org/debian-security/ buster/updates main contrib non-free

(リンクをバックポートすると、別の「リリースファイルなし」エラーが発生するため、省略します。)

その結果は次のとおりです。

# apt update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://ftp.de.debian.org/debian buster InRelease                      
Hit:3 http://ftp.de.debian.org/debian buster-updates InRelease              
The AppStream system cache was updated, but some errors were detected, which might lead to missing metadata. Refer to the verbose log for more information.
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi'
E: Sub-process returned an error code

ベストアンサー1

に示すようにDebian Stretch のセキュリティリポジトリが機能しなくなりました、セキュリティ更新プログラムストアを指す行を次のように置き換える必要があります。

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

これは以下を置き換えます。

deb [trusted=yes] http://security.debian.org/debian-security stretch/updates contrib main non-free

現在持っています。

また、見ることができますmaven:3.5.2-jdk-8でdockerfileをビルドすると、apt-getアップデートはdebian amd64パッケージを取得できません。Debian 9 リポジトリのより一般的なコンテキストです。

Buster Updateは必要な情報を正しく検索しますapt。このエラーはAppStreamに固有のものであり、aptこのエラーなしでアップグレードすることはできません。

おすすめ記事