Friday, May 20, 2011

CentOS Package Error, YUM returns pkgKey Error.

Got this random error from YUM

Error: pkgKey 3185 doesn't exist in repo base You could try running: 
	package-cleanup --problems
	package-cleanup --dupes
	rpm -Va --nofiles --nodigest

Thankfully, google is your friend and you can fix it this this "un-suggested" way:

yum clean all
yum clean metadata

 

Leave a comment if this works for you.

14 comments:

  1. Worked for me on RHEL 5.3. Thanks!

    ReplyDelete
  2. I have a problem with my centos server. I forgot what I did a month ago... Now I can't install any packages to it :(

    ReplyDelete
  3. Worked for me on centos 5.7 that all of a sudden didn't want to install tomcat5.

    ReplyDelete
  4. worked fine on a centos 5.2, thanks

    ReplyDelete
  5. That worked for me on CentOS 5.3. Thanks!

    ReplyDelete
  6. Yep - this worked where the three suggested fixes did not. More RHEL/CentOS brain damage!

    ReplyDelete
  7. You are my hero. I couldn't get those YUM recommendations to work for the life of me.

    ReplyDelete
  8. Worked for me but I just did 'yum clean metadata' (because 'yum clean all' cleans the metadata already so I figured I'd try just cleaning metadata first) and it fixed the problem.

    ReplyDelete
  9. worked for me on centos 5.8 32bits. Thank you.

    ReplyDelete
  10. Worked fine for me on Centos 5.3
    Thanks !

    ReplyDelete
  11. Thanks,

    You saved my day !!
    Solved my problems on CentOS 5.2

    Greetings from the Netherlands

    ReplyDelete
  12. Thanks, worked for me on CentOS 5.8
    Anyone having an idea on what could cause the problem?

    Greetings from Italy

    ReplyDelete