skip to Main Content

Run command "yum update rpm",get the error:"signature hdr data: BAD, no. of bytes(9168) out of range".

My system is CentOS 8. When I tried to download software using the command

 yum install git

I encountered the error. I referred to a solution online at https://www.digitalocean.com/community/questions/cento-os-8-not-updating. However, when I used the command

yum update rpm

I encountered the same error. To execute this command, I need to install "tpm2-tss," but installing this package also results in the same error:


"error: /var/cache/dnf/BaseOS-ee7d6bcc3944df92/packages/tpm2-tss-2.3.2-5.el8.x86_64.rpm: signature hdr data: BAD, no. of bytes(9168) out of range."

How to solve this problem, thanks for your help.

2

Answers


  1. I managed to overcome this same issue by executing:

    curl https://vault.centos.org/8.5.2111/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-3.el8.noarch.rpm -o centos-gpg-keys-8-3.el8.noarch.rpm
    rpm -i centos-gpg-keys-8-3.el8.noarch.rpm
    
    Login or Signup to reply.
  2. The bug is described here: https://bugzilla.redhat.com/show_bug.cgi?id=1896046

    It is fixed in version rpm-4.14.3-12 and above, but because of the bug, a new version from the REPO cannot be installed. You can manually download and install an earlier version like rpm-4.14.3-23.

    Details:

    • Tue Feb 09 2021 Michal Domonkos [email protected] – 4.14.3-12
      • Bump up the limit of signature header to 64MB (#1918777)
      • Add fapolicyd plugin (#1923167)
      • Unblock signals in forked scriptlets (#1913765)
      • Fix ambiguous diagnostics output on file triggers (#1883338)
      • Ensure ELF files get stripped when debuginfo is disabled (#1634084)
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search