aptファイルのsource.listが機能しません。

aptファイルのsource.listが機能しません。

私はkali linux 2024.1を使用しています。 source.listリポジトリに問題があるため解決できません。 aptファイル全体を削除してGitlabのkaliパッケージで再度置き換えるとうまくいきません。 apt.confはありません。 kali isoイメージを抽出し、dpkg -iを使用してapt.debファイルをインストールしてみました。 apt.confが見つからない問題と連携して、source.listとsource.list.dを手動で追加しました。もう一度試しました。 sudo apt update, sudo apt -get 更新内容は次のとおりです。

GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
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.
W: GPG error: http://kali.download/kali kali-bleeding-edge InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-bleeding-edge InRelease' is not signed.
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.
W: GPG error: http://kali.download/kali kali-experimental InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-experimental InRelease' is not signed.
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: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

助けてください大きな問題が発生しました。

ベストアンサー1

コンソールを開き、次の2つのコマンドを実行します。

sudo gpg --keyserver keyserver.ubuntu.com --recv-keys ED444FF07D8D0BF6
sudo gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -

以下の抜粋と修正:

https://forums.kali.org/showthread.php?18079-Public-key-error

おすすめ記事