#8661 Thy python3-pyyaml package has incorrect GPG key value and cannot be installed on Fedora 31.
Closed: It's all good 4 years ago by pbrobinson. Opened 4 years ago by lruzicka.

  • Describe the issue

I wanted to install the python3-pyyaml package on Fedora 31, but it failed due to incorrect GPG key.

  • When do you need this? (YYYY/MM/DD)

As soon as possible, because our internal modularity tests depend on that.

  • When is this no longer needed or useful? (YYYY/MM/DD)

It will be always needed.

  • If we cannot complete your request, what is the impact?

We cannot parse yaml files using a python script.

  • Log files:
2019-08-21T07:18:09Z INFO ================================================================================================================================
 Package                         Architecture            Version                         Repository                        Size
================================================================================================================================
Installing:
 python3-pyyaml                  x86_64                  5.1.2-1.fc31                    updates-testing                  205 k

Transaction Summary
================================================================================================================================
Install  1 Package

2019-08-21T07:18:09Z INFO Total download size: 205 k
2019-08-21T07:18:09Z INFO Installed size: 684 k
2019-08-21T07:18:09Z INFO Downloading Packages:
2019-08-21T07:18:09Z INFO --------------------------------------------------------------------------------------------------------------------------------
2019-08-21T07:18:09Z INFO Total                                                                                           1.4 MB/s | 205 kB     00:00     
2019-08-21T07:18:10Z CRITICAL Importing GPG key 0x3C3359C4:
 Userid     : "Fedora (31) <fedora-31-primary@fedoraproject.org>"
 Fingerprint: 7D22 D586 7F2A 4236 474B F7B8 50CB 390B 3C33 59C4
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64
2019-08-21T07:18:10Z INFO Key imported successfully
2019-08-21T07:18:10Z INFO Import of key(s) didn't help, wrong key(s)?
2019-08-21T07:18:10Z CRITICAL Public key for python3-pyyaml-5.1.2-1.fc31.x86_64.rpm is not installed. Failing package is: python3-pyyaml-5.1.2-1.fc31.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64
2019-08-21T07:18:10Z DDEBUG Cleaning up.
2019-08-21T07:18:10Z INFO The downloaded packages were saved in cache until the next successful transaction.
2019-08-21T07:18:10Z INFO You can remove cached packages by executing 'dnf clean packages'.
2019-08-21T07:18:10Z SUBDEBUG 
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 98, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 122, in cli_run
    ret = resolving(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 166, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 233, in do_transaction
    self.gpgsigcheck(install_pkgs)
  File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 296, in gpgsigcheck
    raise dnf.exceptions.Error(_("GPG check FAILED"))
dnf.exceptions.Error: GPG check FAILED
2019-08-21T07:18:10Z CRITICAL Error: GPG check FAILED

When installing python3-yaml from F31 Live:

Installing:
 python3-pyyaml      x86_64      5.1.2-1.fc31        updates-testing      205 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 205 k
Installed size: 684 k
Is this ok [y/N]: y
Downloading Packages:
python3-pyyaml-5.1.2-1.fc31.x86_64.rpm          5.0 MB/s | 205 kB     00:00    
--------------------------------------------------------------------------------
Total                                           327 kB/s | 205 kB     00:00     
warning: /var/cache/dnf/updates-testing-9640951d8a5b54c9/packages/python3-pyyaml-5.1.2-1.fc31.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 12c944d0: NOKEY
Fedora 31 - x86_64 - Test Updates               298 kB/s | 1.6 kB     00:00    
GPG key at file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64 (0x3C3359C4) is already installed
The GPG keys listed for the "Fedora 31 - x86_64 - Test Updates" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: python3-pyyaml-5.1.2-1.fc31.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

Yes, now we have a branched compose it should all settle down. Force a refresh with dnf if not.

Metadata Update from @pbrobinson:
- Issue close_status updated to: It's all good
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata