I'm new to centos and I'm experimenting installation and configuration of centos server on kvm (host: ubuntu 13.10).
I'm using CentOS-6.5-x86_64-minimal
After installation I tried to update the system but I got this error:
Code: Select all
yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base
So i tried the following command to check if the mirrorlist is available:
Code: Select all
curl 'http://mirrorlist.centos.org/?release=6.5&arch=x86_64&repo=os'
But I can ping that server:
Code: Select all
ping mirrotlist.centos.org
PING mirrotlist.centos.org (85.12.30.227) 56(84) bytes of data.
64 bytes from 85.12.30.227: icmp_seq=1 ttl=56 time=74.6 ms
64 bytes from 85.12.30.227: icmp_seq=2 ttl=56 time=75.1 ms
64 bytes from 85.12.30.227: icmp_seq=3 ttl=56 time=74.8 ms
64 bytes from 85.12.30.227: icmp_seq=4 ttl=56 time=75.2 ms
^C
--- mirrotlist.centos.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3140ms
rtt min/avg/max/mdev = 74.666/74.993/75.236/0.358 ms
What could be the problem?
LuKe