適切な更新を使用するときに署名を無視する方法は?

適切な更新を使用するときに署名を無視する方法は?

Windows用Kaliを使用していますが(簡単に言えば)、間違った署名のために何もインストールできないようです。ツールがインストールされていないため、署名の確認にはgpg使用できません。gpg

私は以下を試しましたが、運がありません。

# sudo apt -o Acquire::AllowInsecureRepositories=true \
> -o Acquire::AllowDowngradeToInsecureRepositories=true \
> update
Get:1 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Err:1 http://kali.download/kali kali-rolling InRelease
  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.

また、以下を試しましたが、エラーも発生します。

# wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

ベストアンサー1

これは、WSL用KaliをMS Storeではなく.appxパッケージに直接ダウンロードしたためです。他の投稿でパッケージが破損しているようだという内容を読みました。 (MS Storeのバージョンは私にとってうまくいきます。)

ただし、MS Storeにアクセスできず、無効な署名の特定の問題を解決するには、次の方法が役に立ちました。

wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2020.2_all.deb

apt install ./kali-archive-keyring_2020.2_all.deb

ルートとして(またはsudoを使用して)、2番目のコマンドは最後に無視できるエラーを発生させます。その後、apt-getアップデートは正常に動作します。

kali-archive-keyring_2020.2_all.debが更新された場合は、ここで新しいバージョンを表示してリンクを変更できます。 https://http.kali.org/kali/pool/main/k/kali-archive-keyring/

おすすめ記事