Web Hosting Forum - Net Hosting Talk

We are a community of individuals and businesses passionate about web hosting. Let's build, learn, and grow together.

yum update repository error in centos 7

LouisChego

Novice
Member
Hi,

I have a VPS server and when I try to update the repository with the following command ( yum update -y ) it returns me with the following error:

One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail.

I was wondering if someone could help me.
 
  • Advertisement
  • If you previously have added additionalpository to your system, it is likely causing the failure. Try disabling additional repositories by editing their file located in /etc/yum.repos.d/ by changing enabled=1 to enabled=0. Then try yum update -y again.
     
    Hi,

    I have seen this issue solved by replacing the nameservers on the /etc/resolv.conf file.

    Change it to something like 4.2.2.2 or 8.8..8.8 and this helps solve the issue

    Regards.
     
  • Advertisement
  • Advertisement

    Back
    Top