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
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!!!
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.
The problem is config of dhcp, try typing
dhclient
sudo sed -i 's/https/http/g' /etc/yum.repos.d/epel.repo
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
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=
.