centos 7.1 - error repository

前端 未结 9 2130
失恋的感觉
失恋的感觉 2021-01-31 21:26

Hello I have download the minimal release of CENTOS 7 at this url link download ISO centos 7.x

All work correctly...the PING and the network is OK. I ping to external HO

9条回答
  •  日久生厌
    2021-01-31 21:46

    This issue can also happen if the yum repository in question is actually offline or not responding correctly.

    This can be a little tricky to diagnose, but the yum repo might respond to ping and respond to web requests on the base URL, but does not serve up packages correctly.

    To find the problematic repo, I've found what works best is to move each repo file out of /etc/yum.repos.d and into a temporary holding folder (e.g., /root/yum_bak) and run yum update after removing each repo. Once you've moved the problematic repo out of /etc/yum.repos.d then yum update (and other yum commands will start working normally again. Move the working yum repos back into /etc/yum.repos.d and you're back in business.

    Just don't forget to move the problematic repo back into /etc/yum.repos.d after the outage has ended.

提交回复
热议问题