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
I managed to overcome this same issue by executing:
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: