yum update repository error in centos 7

Welcome to our community

Be apart of something great, join today!

LouisChego

Newbie
Messages
7
Reaction score
2
Points
3
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
  • r9host

    Newbie
    Messages
    14
    Reaction score
    0
    Points
    1
    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.
     

    SwissLayer

    Newbie
    Messages
    11
    Reaction score
    0
    Points
    1
    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

    Top