Results 1 to 10 of 11
Hello all,
I am stuck on a problem. I cannot update a new CentOS 5.3 server via yum whenever I try to update the system it gives me this error.
...
- 04-27-2009 #1Just Joined!
- Join Date
- Apr 2008
- Location
- Chicago, IL
- Posts
- 34
[SOLVED] yum update error
Hello all,
I am stuck on a problem. I cannot update a new CentOS 5.3 server via yum whenever I try to update the system it gives me this error.
I have checked my resolv.conf file and my e0 connection and I am able to ping by name and nslookup is able to find any web address.Code:# yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was [Errno 4] IOError: <urlopen error (111, 'Connection refused')> Error: Cannot find a valid baseurl for repo: base
Does anyone have a solution or can anyone point me to a solution?
Any help would be greatly appreciated by this dumb noob...
- 04-28-2009 #2Mirror list url is working fine but something is wrong with baseurl only. Post the contents of CentOS repo file. Check in the /etc/yum.repos.d folder.Error: Cannot find a valid baseurl for repo: baseIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 04-28-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 35
update yum trouth a proxy
Are you behind a proxy . if yes ,
check this link how to update with yum trouth a proxy
LINK
- 04-28-2009 #4Just Joined!
- Join Date
- Apr 2008
- Location
- Chicago, IL
- Posts
- 34
The contents of /etc/yum.repos.d are
CenOS-Base.repo and CentOS-Media.repo
CentOS-Base.repo is
and CentOS-Media.repoCode:# 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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Code:# CentOS-Media.repo # # This repo is used to mount the default locations for a CDROM / DVD on # CentOS-5. You can use this repo and yum to install items directly off the # DVD ISO that we release. # # To use this repo, put in your DVD and use it with the other repos too: # yum --enablerepo=c5-media [command] # # or for ONLY the media repo, do this: # # yum --disablerepo=\* --enablerepo=c5-media [command] [c5-media] name=CentOS-$releasever - Media baseurl=file:///media/CentOS/ file:///media/cdrom/ file:///media/cdrecorder/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5Last edited by jrt77; 04-28-2009 at 02:48 PM. Reason: Adding additional information
- 04-28-2009 #5Just Joined!
- Join Date
- Apr 2008
- Location
- Chicago, IL
- Posts
- 34
Fantaman,
Thanks for the link, I'll check it out. Much appreciated.
J
- 04-28-2009 #6Remove # sign before base, name and mirrorlist lines.#[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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Code:[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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 04-28-2009 #7Just Joined!
- Join Date
- Apr 2008
- Location
- Chicago, IL
- Posts
- 34
I just removed uncommented base, name and mirrorlist and now I am getting this error
"Cannot retrieve repository metadata (repomd.xml) for repository base. Please verify its path and try again."
??????
I am at a complete loss as to what is happening with this system.
- 04-28-2009 #8Just Joined!
- Join Date
- Apr 2008
- Location
- Chicago, IL
- Posts
- 34
Where can I edit the location for the repomd.xml file? Does anyone have a solution for this issue? Should I just use another distro?
- 04-28-2009 #9
Are you behind proxy? Check System - Preferences - Network Proxy and set correct values.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 04-28-2009 #10Just Joined!
- Join Date
- Apr 2008
- Location
- Chicago, IL
- Posts
- 34
Moved the server to a different switch in the DMZ and it is now working properly. Thanks for the help. I really appreciate it.
J


