Can not directly install the scap-security-guide package in RHEL 10.0

Solution Verified - Updated -

Issue

  • When try to install scap-security-guide for the first time, the following error message appeared and the installation could not be completed:
# dnf install scap-security-guide
Updating Subscription Management repositories.
Last metadata expiration check: 0:54:33 ago on ...........
Dependencies resolved.
=============================================================================================================================================================
 Package                               Architecture             Version                            Repository                                           Size
=============================================================================================================================================================
Installing:
 scap-security-guide                   noarch                   0.1.77-2.el10                      rhel-10-for-x86_64-appstream-rpms                   728 k
Installing dependencies:
 openscap                              x86_64                   1:1.4.2-1.el10_0                   rhel-10-for-x86_64-appstream-rpms                   2.0 M
 openscap-scanner                      x86_64                   1:1.4.2-1.el10_0                   rhel-10-for-x86_64-appstream-rpms                    52 k

Transaction Summary
=============================================================================================================================================================
Install  3 Packages

Total download size: 2.8 M
Installed size: 102 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): openscap-1.4.2-1.el10_0.x86_64.rpm                                                                                                                                                                                                 1.7 MB/s | 2.0 MB     00:01    
(2/3): scap-security-guide-0.1.77-2.el10.noarch.rpm                                                                                                                                                                                       606 kB/s | 728 kB     00:01    
(3/3): openscap-scanner-1.4.2-1.el10_0.x86_64.rpm                                                                                                                                                                                          16 kB/s |  52 kB     00:03    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                     877 kB/s | 2.8 MB     00:03     
Red Hat Enterprise Linux 10 for x86_64 - AppStream (RPMs)                                                                                                                                                                                 412 kB/s | 3.7 kB     00:00    
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Traceback (most recent call last):
  File "/usr/bin/yum", line 62, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.12/site-packages/dnf/cli/main.py", line 208, in user_main
    errcode = main(args)
              ^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/dnf/cli/main.py", line 67, in main
    return _main(base, args, cli_class, option_parser_class)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/dnf/cli/main.py", line 106, in _main
    return cli_run(cli, base)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/dnf/cli/main.py", line 130, in cli_run
    ret = resolving(cli, base)
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/dnf/cli/main.py", line 183, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.12/site-packages/dnf/cli/cli.py", line 276, in do_transaction
    self.gpgsigcheck(install_pkgs)
  File "/usr/lib/python3.12/site-packages/dnf/cli/cli.py", line 332, in gpgsigcheck
    self._get_key_for_package(po, fn)
  File "/usr/lib/python3.12/site-packages/dnf/base.py", line 2555, in _get_key_for_package
    keys = dnf.crypto.retrieve(keyurl, repo)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/dnf/crypto.py", line 137, in retrieve
    keyinfos = rawkey2infos(handle)
               ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/dnf/crypto.py", line 127, in rawkey2infos
    keys = libdnf.repo.Key.keysFromFd(key_fo.fileno())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/libdnf/repo.py", line 341, in keysFromFd
    return _repo.Key_keysFromFd(fileDescriptor)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Parsing armored OpenPGP packet(s) failed

Environment

  • Red Hat Enterprise Linux 10.0
    • librepo-1.18.0-3.el10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content