
次を実行すると、このエラーが発生します。sudo apt update
Ubuntu 22.04のターミナルで
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org/repositories/home:/Provessor/xUbuntu_20.04 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 876292BF7F9C32BF
W: http://download.mono-project.com/repo/ubuntu/dists/trusty/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: Failed to fetch http://download.opensuse.org/repositories/home:/Provessor/xUbuntu_20.04/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 876292BF7F9C32BF
W: Some index files failed to download. They have been ignored, or old ones used instead.
次のコマンドを使用して問題を解決しようとしましたが、うまくいかずにsudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 876292BF7F9C32BF
次のメッセージが表示されます。
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.fbmSbmsKSu/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 876292BF7F9C32BF
gpg: keyserver receive failed: No data
詳細については、ここをクリックしてください。 https://i.stack.imgur.com/sehEd.png
助けてください:(
答え1
次のコマンドで問題を解決しました。
sudo rm -rf /var/lib/apt/lists/*
sudo rm -rf /etc/apt/sources.list.d/*
sudo apt-get update
:)
答え2
この方法は廃止~のためセキュリティの質問:追加した署名キーで署名できます。どのその署名キーストアのパッケージだけでなくパッケージ。
より安全なアプローチは、キーを同様の場所に追加してからファイル/usr/share/keyrings/repository-name.gpg
からsources.list
参照することです。
deb [signed-by=/usr/share/keyrings/some-repo.gpg] http://some.repo/apt dev main
詳しくはこちらファイルsources.list
形式または視聴この例Xpraキーとリポジトリを追加します。