Yum Update Fails

Issues related to software problems.
rickrod99
Posts: 4
Joined: 2010/04/02 15:21:18
Location: Plantation, FL
Contact:

Yum Update Fails

Post by rickrod99 » 2010/04/02 15:27:53

Guys,

Thank you for having me here. I was wondering if one of you could help me out. I just did a fresh install of Centos 5.4 and I tried to run Yum Update and it failed. Here is the results of running the command:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.netdna.com
* base: mirror.sanctuaryhost.com
* centosplus: ftp.usf.edu
* contrib: mirror.umoss.org
* extras: mirror.cogentco.com
* updates: mirror.trouble-free.net
http://mirrors.netdna.com/centos/5.4/addons/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirror.cogentco.com/pub/linux/centos/5.4/addons/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mira.sunsite.utk.edu/centos/5.4/addons/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
addons | 951 B 00:00
base | 2.1 kB 00:00
http://ftp.usf.edu/pub/centos/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://www.gtlib.gatech.edu/pub/centos/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirror.nexcess.net/CentOS/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirror.seiri.com/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://centos.cs.wisc.edu/pub/mirrors/linux/centos/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirror.san.fastserv.com/pub/linux/centos/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirrors.cat.pdx.edu/centos/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirror.cs.vt.edu/pub/CentOS/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirrors.gigenet.com/centos/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
http://mirrors.arsc.edu/centos/5.4/centosplus/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: centosplus. Please verify its path and try again

I have looked through the forums searching for a solution but I have tried all and nothing seems to work. I can resolve all these URLs. I thought it might have been an issue with my DNS but I can resolve other domain names.

Any suggestions would be helpfull.

User avatar
toracat
Forum Moderator
Posts: 7289
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Yum Update Fails

Post by toracat » 2010/04/02 16:08:04

Welcome to the CentOS forums.

Please post your /etc/yum.repos.d/CentOS-Base.repo file for us to see.

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: Yum Update Fails

Post by chuina » 2010/04/02 16:11:30

Welcome to the [color=003300]CentOS[/color].

First take a look at [url=http://www.centos.org/modules/newbb/viewforum.php?forum=47]FAQ & Readme First[/url].

Try these:
[code]yum clean all
yum update[/code]

If failed then read the instruction at [b]How to Provide Information About Your System[/b] from above [b]FAQ & Readme First[/b] link.
And provide info by running [b]./getinfo.sh package[/b] command.

rickrod99
Posts: 4
Joined: 2010/04/02 15:21:18
Location: Plantation, FL
Contact:

Re: Yum Update Fails

Post by rickrod99 » 2010/04/02 17:17:38

HERE YOU GO GUYS...THANKS

# CentOS-Base.repo
#
# 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=1
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=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5



####################################################################
# 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-5
~
~
~

rickrod99
Posts: 4
Joined: 2010/04/02 15:21:18
Location: Plantation, FL
Contact:

Re: Yum Update Fails

Post by rickrod99 » 2010/04/02 17:30:04

No sorry. That didn't work. Here is the thing. They all say something like http://mirror.ubiquityservers.com/centos/5.4/addons/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden but when you try to access the actual document it is available on the web. So I don't understand why it says 403.

User avatar
AlanBartlett
Forum Moderator
Posts: 9319
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Yum Update Fails

Post by AlanBartlett » 2010/04/02 17:40:36

Is there a proxy-server involved at all?

If yes, please see the [url=http://wiki.centos.org/TipsAndTricks/YumAndRPM#head-ea1fc5d78f578114f4843e57627ebae9cc4fcb5a]Using Yum With A Proxy Server[/url] article in the [i]CentOS[/i] wiki.

rickrod99
Posts: 4
Joined: 2010/04/02 15:21:18
Location: Plantation, FL
Contact:

Re: Yum Update Fails

Post by rickrod99 » 2010/04/02 18:06:05

No guys there is no proxy server at all. I also thought it might have been the firewall but I have since turned it off.

User avatar
toracat
Forum Moderator
Posts: 7289
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Yum Update Fails

Post by toracat » 2010/04/02 18:36:02

Can you try the yum command with the added [b]--enablerepo=base,updates[/b] option and see what happens?

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: Yum Update Fails

Post by chuina » 2010/04/02 19:09:00

or, better try is:
[code][b]yum --disablerepo=\* --enablerepo=base,updates update[/b][/code]

User avatar
AlanBartlett
Forum Moderator
Posts: 9319
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Yum Update Fails

Post by AlanBartlett » 2010/04/02 19:45:51

[ot]
The [i]stripy cat[/i] was outsmarted by the [i]white pigeon[/i] . . . :-o
[/ot]

Post Reply