yum update error: Error: pkgKey doesn’t exist in repo base

You can solve this problem by cleaning your yum metadata and cache.

yum clean all 
yum clean metadata 

You may also like...