gpgとapt-getアップデートの問題 - キーがありませんか?

gpgとapt-getアップデートの問題 - キーがありませんか?

どうすればいいのかわかりませんが、apt-getを台無しにすることができました。実行中

sudo su
apt-get update

以下のようにエラーが発生します。

W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: GPG error: http://security.debian.org stretch/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
W: The repository 'http://security.debian.org stretch/updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.

リポジトリの場合:

http://deb.debian.org/debian stretch-updates InRelease
http://deb.debian.org/debian stretch-proposed-updates InRelease
http://deb.debian.org/debian stretch Release

一部のキーが欠落していることがわかり、次のようにキーを作成しようとしました。

gpg --keyserver keyring.debian.org --recv-keys 8B48AD6246925553

しかし、返信を受けました。

gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

そして別の質問があります。http://deb.debian.org/debianストレッチ/メイン翻訳-en:

E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/i18n/Translation-en  BZ2_bzread: /var/lib/apt/lists/partial/deb.debian.org_debian_dists_stretch_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)

これはZip形式に関連しているようです! ?私が何をしたのかわかりません。

2つの問題を解決する方法についてのアイデア/ヒントはありますか?

乾杯、クリスチャン

ベストアンサー1

この問題を解決する最も簡単な方法は手動でダウンロードすることです。debian-archive-keyringパッケージそしてインストールしてapt updateやり直してください。また、次の権限を復元する必要があります/etc/apt/trusted.gpg

sudo chmod 444 /etc/apt/trusted.gpg

問題Translationsは、サーバーに無効なファイルがあり、これに対処できるアクションがないことです。

おすすめ記事