Il problema
L'aggiornamento DNF non riesce con il seguente errore:
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
La soluzione
Se stai usando “
1. Imposta e importa manualmente la posizione del file della chiave GPG:
# rpm --import "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle"
o
2. Aggiungi o imposta la chiave GPG per tutte le singole voci del repository in /etc/yum.repos.d :
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle