"Error: requested datatype primary not available" when running yum command.

Solution Verified - Updated -

Issue

  • Yum commands gives the error:
# yum search jdk
rhel-5-server-cf-tools-1-rpms                                                                      |   15 B     00:00
Error: requested datatype primary not available
  • /var/log/up2date.log shows:
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 327, in __run_action
    (status, message, data) = CheckCli.__do_call(method, params, kwargs)
  File "/usr/sbin/rhn_check", line 319, in __do_call
    method = getMethod.getMethod(method, "/usr/share/rhn/", "actions") 
:
:
  File "/usr/lib/python2.4/site-packages/yum/repoMDObject.py", line 131, in getData
    raise RepoMDError, "requested datatype %s not available" % type
yum.Errors.RepoMDError: requested datatype primary not available

Environment

  • Red Hat Enterprise Linux 5.7
  • RHN Classic

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.