yum cannot locate glibc package

Pinoywh

Active Member
Feb 4, 2005
35
0
156
Hi,

We cannot update apache/php due to the following error:

Your operating system's rpm update method (yum) was not able to locate the glibc package. This is an indication of an improper setup. You must correct this error before you can proceed.

If we check on yum via ssh:

[email protected] [/usr/bin]# yum update
Gathering header information file(s) from server(s)
Server: Centos-Null - i386/i686 - Addons
retrygrab() failed for:
http://linux.mirrors.layeredtech.com/centos/Null/addons/i386/headers/header.in fo
Executing failover method
retrygrab() failed for:
http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/Null/addons/i386/headers/header.info
Executing failover method
retrygrab() failed for:
http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/Null/addons/i386/headers/header.info
Executing failover method
retrygrab() failed for:
http://mirror.cs.wisc.edu/pub/mirro...centos-3/Null/addons/i386/headers/header.info
Executing failover method
retrygrab() failed for:
http://acmserver.cs.ucr.edu/centos/centos-3/Null/addons/i386/headers/header.info
Executing failover method
failover: out of servers to try
Error getting file http://linux.mirrors.layeredtech.com/centos/Null/addons/i386/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found


I already removed and installed a different yum rpm but still the same. I already tried all the suggestions on this forum, but to no avail... Can someone help?

Thanks
Luke
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
Pinoywh said:
I already removed and installed a different yum rpm but still the same. I already tried all the suggestions on this forum, but to no avail... Can someone help?
The syntax of your yum.conf is not accurate. Fix the directives in your yum.conf and then run this command:
/scripts/rpmup
/scripts/upcp --force
 

Pinoywh

Active Member
Feb 4, 2005
35
0
156
Hi,

Thanks, but I think there is no problem with the yum.conf, I already copied a working one from another server. Here is the yum.conf

Code:
[main]
exclude=mod_ssl* httpd* perl mysql* php* spamassassin* kernel* courier* apache* exim*
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
exclude=mrtg spamassassin* httpd* mod_ssl* perl* mysql* php* kernel* courier* apache* exim*

[base]
failovermethod=priority
name=Centos-$releasever - $basearch/$arch - Base
baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/os/$basearch
        http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/os/$basearch
        http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/os/$basearch
        http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/os/$basearch
        http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/os/$basearch

[updates]
failovermethod=priority
name=Centos-$releasever - $basearch/$arch - Updates
baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/updates/$basearch
        http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/updates/$basearch
        http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/updates/$basearch
        http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/updates/$basearch
        http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/updates/$basearch

[addons]
failovermethod=priority
name=Centos-$releasever - $basearch/$arch - Addons
Baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/addons/$basearch
        http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/addons/$basearch
        http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/addons/$basearch
        http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/addons/$basearch
        http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/addons/$basearch

[extras]
failovermethod=priority
name=Centos-$releasever - $basearch/$arch - Extras
baseurl=http://linux.mirrors.layeredtech.com/centos/$releasever/extras/$basearch
        http://ibiblio.org/pub/linux/distributions/caoslinux/centos-3/$releasever/extras/$basearch
        http://www.gtlib.cc.gatech.edu/pub/cAos/centos-3/$releasever/extras/$basearch
        http://mirror.cs.wisc.edu/pub/mirrors/linux/caosity.org/centos-3/$releasever/extras/$basearch
        http://acmserver.cs.ucr.edu/centos/centos-3/$releasever/extras/$basearch
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
For Centos - this is not how they recommend setting it up. They have a plugin for yum that finds the fastest mirror.

Yum.conf

Code:
[main]
exclude=courier* apache* mod_ssl* httpd* perl mysql* php* spamassassin* kernel* exim*
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1

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

and

the repo file
Code:
[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-centos4

#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-centos4

#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-centos4

#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-centos4

See all the mirror lists. Try that.
 

Pinoywh

Active Member
Feb 4, 2005
35
0
156
I used this yum.conf of yours and I got this:

[email protected] [/etc]# yum update
Error: Cannot find baseurl or name for server 'contrib'. Skipping
Error: Cannot find baseurl or name for server 'centosplus'. Skipping
Error: Cannot find baseurl or name for server 'extras'. Skipping
Error: Cannot find baseurl or name for server 'addons'. Skipping
Gathering header information file(s) from server(s)
Finding updated packages
Downloading needed headers
No Packages Available for Update
No actions to take
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
You can see by the output from your first attempt at running yum that something besides the conf appears to be botched. Yum is clearly not parsing the variables stored in the conf, for example:

Server: Centos-Null - i386/i686 - Addons
should be something to the effect of:

Server: Centos-3.4 - i386/i686 - Addons
I ran into this error before and a simple reinstall of the yum RPM fixed things right up for me. You might have to force an uninstall/reinstall due to certain dependency issues.