問題
DNF 更新は次のエラーで失敗します:
2018-06-22T14:31:22 DDEBUG Cleaning up. 2018-06-22T14:31:22 INFO The downloaded packages were saved in cache until the next successful transaction. 2018-06-22T14:31:22 INFO You can remove cached packages by executing 'dnf clean packages'. 2018-06-22T14:31:22 SUBDEBUG Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main return cli_run(cli, base) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 123, in cli_run ret = resolving(cli, base) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 168, in resolving base.do_transaction(display=displays) File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 232, in do_transaction self.gpgsigcheck(install_pkgs) File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 295, in gpgsigcheck raise dnf.exceptions.Error(_("GPG check FAILED")) dnf.exceptions.Error: GPG check FAILED 2018-06-22T14:31:22Z CRITICAL Error: GPG check FAILED
解決策
「
1. GPG キー ファイルの場所を手動で設定してインポートします。
# rpm --import "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"
または
2. /etc/yum.repos.d の下のすべての個々のリポジトリ エントリに GPG キーを追加または設定します。 :
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle