centos 7.1 - error repository

前端 未结 9 2112
失恋的感觉
失恋的感觉 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:42

    First of all, I was able to fix this issue as mentioned above by using "dhclient". But you will have to run this command every time you reboot. This could be because your Ethernet is disabled and you have to enable it explicitly. Click here to see the reason. For a permanent fix I edited /etc/sysconfig/network-scripts/ifcfg-{YOURETHERNET} (In my case it was /etc/sysconfig/network-scripts/ifcfg-eth0) and changed ONBOOT=yes and boom!!!

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-31 21:50

    The problem is config of dhcp, try typing

    dhclient
    
    0 讨论(0)
  • 2021-01-31 21:52

    sudo sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo

    0 讨论(0)
  • 2021-01-31 21:53

    I landed here because I had added a bad mirror for a different dependency (passenger, for a Rails app), and solved this problem by just deleting the bad mirror:

    rm /etc/yum.repos.d/YOUR-BAD-DEPENDENCY-NAME.repo

    e.g.

    rm /etc/yum.repos.d/passenger.repo

    0 讨论(0)
  • 2021-01-31 21:56

    It is the error coming from the https connection in /etc/yum.repos.d/epel.repo after you installed ius-release.rpm through

    sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm
    

    You need to do following stuff in /etc/yum.repos.d/epel.repo.

    baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
    

    Uncomment baseurl and comment line beginning with mirrorlist=.

    0 讨论(0)
提交回复
热议问题