zypper errors about a file not containing public key data?

Roy, welcome here.

You have reopened an old thread. If you want any attention for what you’re posting, please start a new thread.

Two years later, and this is the second result that comes up when I googled “zypper doesn’t contain public key data.” I don’t know why all these forums seem to want to open new threads when the old ones are still relevant. I mean this is Linux, is it not?

I was able to solve this by reinstalling gpg2 (zypper in --force gpg2); apparently mine was corrupted. I found that on another website about two hours after reading this one.

Hi,

i got this error on a SLES11SP3 server.
I solved it by copying the entire directory /var/cache/zypp/raw/<REPONAME> from another identic server