The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

yum cannot locate glibc package

Discussion in 'General Discussion' started by Pinoywh, Jun 25, 2006.

  1. Pinoywh

    Pinoywh Active Member

    Joined:
    Feb 4, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    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:

    root@server [/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
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    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
     
  3. Pinoywh

    Pinoywh Active Member

    Joined:
    Feb 4, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  4. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  5. Pinoywh

    Pinoywh Active Member

    Joined:
    Feb 4, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    I used this yum.conf of yours and I got this:

    root@server [/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
     
  6. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    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:

    should be something to the effect of:

    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.
     
Loading...

Share This Page