Cuneyt M wrote:
> I am running Centos 5.2 and recently did yum update for 4.0.2
>
> After the update completed and restarted, i start getting following
> errors in yum update - applies to all servers updated;
>
> # yum update
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
> * centos-5.2-extras: centosk3.centos.org
> * centos-5.2-updates: centosk3.centos.org
> * centos-5.2-base: centosq2.centos.org
> * centos-5.2-addons: centos.intergenia.de
> http://centosk3.centos.org/centos/5.2/extras/i386/repodata/repomd.xml:
> [Errno 14] HTTP Error 404: Not Found
> Trying other mirror.
> http://centosq2.centos.org/centos/5.2/extras/i386/repodata/repomd.xml:
> [Errno 14] HTTP Error 404: Not Found
> .....
> this goes and on and until all fails.
>
> The repo contents are as following;
>
> [centos-5.2-base]
> name=CentOS-5.2 - Base
> mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=$basearch&repo=os
> #baseurl=http://mirror.centos.org/centos/5.2/os/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
> .....
> ..........
> ............
> #additional packages that may be useful
> [centos-5.2-extras]
> name=CentOS-5.2 - Extras
> mirrorlist=http://mirrorlist.centos.org/?release=5.2&arch=$basearch&repo=extras
> #baseurl=http://mirror.centos.org/centos/5.2/extras/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>
> [sipxecs-stable]
> name=SIPfoundry sipXecs pbx - latest stable version
> baseurl=http://sipxecs.sipfoundry.org/pub/sipXecs/LatestStable/CentOS/5/$basearch/RPM
> gpgcheck=0
>
>
> any pointers on how to fix it will be appreciated.
>
> cheers.
You have two choices, stay at CentOS 5.2 or move to 5.3 - see below:
WARNING: Make a backup of any files or directories modified before you
do anything!!!!!!
If you want to remain on CentOS 5.2 then:
1. If you have any CentOS repo files in /etc/yum.repos.d/ remove them or
comment out, with #, their contents.
2. Edit /etc/yum.repos.d/sipxecs.repo and remove or comment out, with #,
all lines referring to CentOS repos.
2. Run "yum update", and the errors should be gone. If they are still
present, delete everything under /var/cache/yum/ and run "yum update" again.
Please note that you will no longer receive updates to CentOS, which by
the way is what the SipXecs developers intended.
If you want to update to CentOS 5.3, which is what we are running here,
then:
1. Find and download "centos-release-5-3.el5.centos.1" rpm for your
architecture, I386 or x64. The links from a mirror near me are:
http://ftp.heanet.ie/pub/centos/5.3/os/i386/CentOS/centos-release-5-3.el5.centos.1.i386.rpm
[From the errors in your mail this is the one you need!]
or
http://ftp.heanet.ie/pub/centos/5.3/os/x86_64/CentOS/centos-release-5-3.el5.centos.1.x86_64.rpm
2. Edit /etc/yum.repos.d/sipxecs.repo and remove or comment out, with #,
all the lines referring to CentOS repos.
3. If the CentOS repo files in /etc/yum.repos.d/ are missing then place
the two attached files in /etc/yum.repos.d/ making sure you set
ownership and security to the same as sipxecs.repo
4. Install the "centos-release-5-3.el5.centos.1" rpm, rpm -i
centos-release-5-3.el5.centos.1.i386.rpm
5. Run "yum update", if you are still getting errors delete everything
under /var/cache/yum/ and run "yum update" again.
Damian
# 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
# 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
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/