dnf repolist command is failing with the Error: Cache-only enabled but no cache for 'rhel-8-for-x86_64-appstream-rpms' on RHEL8 client registered to Red Hat Satellite 6.5.

Solution Verified - Updated -

Issue

  • dnf repolist or yum repolist resulting in below error on RHEL 8 client :
Updating Subscription Management repositories.
Error: Cache-only enabled but no cache for 'rhel-8-for-x86_64-appstream-rpms'
  • While running dnf repolist command on RHEL 8 client getting error failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms', ignoring this repo.

Environment

  • Red Hat Satellite 6.5
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In