[CentOS] yum can't connect to mirrors

Dave

dmehler26 at woh.rr.com
Tue May 8 16:39:53 UTC 2007


Hello,
    I added rpmforge yum repo to my yum config and then the box couldn't 
connect to fetch updates. I added enabled=0 to rpmforge.repo as well as 
add-ons, contrib, and centosplus, but i'm still getting mirror errors. I 
believe i've got some file corruption somewhere, but i don't see where. I 
can't even fetch packages in updates now, keep getting connection refused 
msgs.
Thanks.
Dave.

#yum install lynx
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
primary.xml.gz              4% |=                        |  32 kB    00:07 
ETA
primary.xml.gz             21% |=====                    | 175 kB    00:14 
ETA
primary.xml.gz            100% |=========================| 175 kB    00:04
http://www.gtlib.gatech.edu/pub/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno -1] Metadata file does not match checksum
Trying other mirror.
http://mirrors.tiatera.com/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://dist1.800hosting.com/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.chpc.utah.edu/pub/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno 4] IOError: <urlopen error (101, 'Network is unreachable')>
Trying other mirror.
http://mirror.myriadnetwork.com/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.omnispring.com/5.0/os/i386/repodata/primary.xml.gz: [Errno 4] 
IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirror.fast-serv.com/pub/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://centos.mirror.nac.net/5.0/os/i386/repodata/primary.xml.gz: [Errno 4] 
IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://updates.interworx.info/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
http://mirrors.easynews.com//linux/centos/5.0/os/i386/repodata/primary.xml.gz: 
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
Error: failure: repodata/primary.xml.gz from base: [Errno 256] No more 
mirrors to try.
#cat rpmforge.repo
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
#mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
#cat CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for 
CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS 
updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

#rpm -q yum
yum-3.0.5-1.el5.centos.2




More information about the CentOS mailing list