Troubleshooting Corrupt Repositories

The information in the repository data file can become corrupt or out of date. This can create problems with updating the server. You can fix this by removing the files and regenerating it. With an new repository data file, updates should operate as expected.

Procedure: Resolving Corrupt Repository Data
  1. Remove all files from /var/cache/rhn/repodata/sles15-0-updates-x86_64

  2. Regenerate the file from the command line:

    spacecmd softwarechannel_regenerateyumcache sles{sles-version}-{sp-vert}-updates-x86_64