yum failing due to corrupted repo file.

Solution Verified - Updated -

Issue

  • yum failing due to corrupted repo file:
# yum update
Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager
File contains parsing errors: /var/lib/rhsm/repo_server_val/redhat.repo
        [line 106]: ui_repoid_var
.
.
.
No packages marked for update
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager
File contains parsing errors: /var/lib/rhsm/repo_server_val/redhat.repo
        [line 106]: ui_repoid_var

Environment

  • Red Hat Enterprise Linux

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content