title: Error: Cannot find a valid baseurl for repo: base
body: <p>I need some help please, I am trying to install <code>yum update</code> in CentOS 5.9 but I get error</p>
  
  <pre><code>&gt; Loaded plugins: fastestmirror, kmod Loading mirror speeds from cached
  &gt; hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or
  &gt; file.  Eg. Invalid release/ removing mirrorlist with no valid mirrors:
  &gt; /var/cache/yum/base/mirrorlist.txt Error: Cannot find a valid baseurl
  &gt; for repo: base
  </code></pre>
  
  <p>please help me how to fix this</p>
  
  <p><strong>update content of CentOS-Base.repo</strong></p>
  
  <pre><code>   [base]
  name=CentOS-$releasever - Base
  #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=os
  baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  gpgcheck=1
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
  exclude=redhat-logos php53*
  
  #released updates
  [updates]
  name=CentOS-$releasever - Updates
  #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=updates
  baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
  gpgcheck=1
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
  exclude=redhat-logos php53*
  
  #additional packages that may be useful
  [extras]
  name=CentOS-$releasever - Extras
  #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=extras
  baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
  gpgcheck=1
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
  exclude=redhat-logos php53*
  
  #additional packages that extend functionality of existing packages
  [centosplus]
  name=CentOS-$releasever - Plus
  #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=centosplus
  baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
  gpgcheck=1
  enabled=0
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
  exclude=redhat-logos php53*
  
  #contrib - packages by Centos Users
  [contrib]
  name=CentOS-$releasever - Contrib
  #mirrorlist=http://mirrorlist.centos.org/?release=5$releasever&amp;arch=$basearch&amp;repo=contrib
  baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
  gpgcheck=1
  enabled=0
  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
  exclude=redhat-logos php53*
  </code></pre>
  
  <p>Thank you in advance.</p>