rpmReadSignature failed: sigh load: BAD on redhat 7.4

Posted on

im trying to reposync suse repos from redhat7.4 .
the process start to download several apckage untill it get to this mod_python-3.3.1-147.19.x86_64.rpm package and then the all process exit with error as seen below.
from a quick search on google i came out with the reason that it because of the rpm version.
on redhat 6 i use this solution
export LD_LIBRARY_PATH=/tmp/rpm-libs/rpm-libs-4.8.0-19/usr/lib64/:/tmp/rpm-libs/sles12sp1-smt:$LD_LIBRARY_PATH

and it works ok
but from some reason on redhat 7.4 it does not work.
on suse 12.2 it also works so i cant understand how to make my redhat7.4 work.
my production servers are based on 7.4 and from there im syncing many repos.

ERROR:
reposync --repoid=sles11-sdk-sp1-pool -d -l -n -m --download-metadata -p .
Loaded plugins: langpacks, product-id
error: /tmp/sles11-sdk-sp1-pool/rpm/x86_64/apache2-mod_python-3.3.1-147.19.x86_64.rpm: rpmReadSignature failed: sigh load: BAD
Traceback (most recent call last):
File "/usr/bin/reposync", line 343, in
main()
File "/usr/bin/reposync", line 317, in main
probs = my.downloadPkgs(download_list)
File "/usr/lib/python2.7/site-packages/yum/init.py", line 2484, in downloadPkgs
if verify_local(po):
File "/usr/lib/python2.7/site-packages/yum/init.py", line 2465, in verify_local
if self.verifyPkg(local, po, False):
File "/usr/lib/python2.7/site-packages/yum/init.py", line 2355, in verifyPkg
ylp = YumLocalPackage(self.rpmdb.readOnlyTS(), fo)
File "/usr/lib/python2.7/site-packages/yum/packages.py", line 2103, in init
'Could not open local rpm file: %s: %s' % (self.localpath, e)
yum.Errors.MiscError: Could not open local rpm file: ./sles11-sdk-sp1-pool/rpm/x86_64/apache2-mod_python-3.3.1-147.19.x86_64.rpm: RPM Error opening Package
You have new mail in /var/spool/mail/root

Responses