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.

Problems with YUM

Discussion in 'General Discussion' started by Mat-d-rat, Aug 19, 2008.

  1. Mat-d-rat

    Mat-d-rat Well-Known Member

    Joined:
    Jul 30, 2003
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    WHM 11.23.2 cPanel 11.23.4-R26138
    CENTOS Enterprise 4.6 i686 on standard - WHM X v3.1.0

    I tried to update apace to include suhosin but it failed. Seems as though YUM has an issue :-
    Code:
    [main]
    exclude=apache* bind-chroot centos-yumconf courier* dovecot* exim* httpd* kernel kernel-xen kernel-sm$
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported ke$
    tolerant=1
    exactarch=1
    
    [base]
    name=CentOS-$releasever - Base
    baseurl=http://caos.fortressitx.com/centos/$releasever/os/$basearch/
    gpgcheck=0
    
    #released updates
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://caos.fortressitx.com/centos/$releasever/updates/$basearch/
    gpgcheck=0
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    baseurl=http://caos.fortressitx.com/centos/$releasever/addons/$basearch/
    gpgcheck=0
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=http://caos.fortressitx.com/centos/$releasever/extras/$basearch/
    gpgcheck=0
    
    #packages in testing
    #[testing]
    #name=CentOS-$releasever - Testing
    #baseurl=http://caos.fortressitx.com/centos/$releasever/os/testing/$basearch/
    #gpgcheck=0
    
    When I run "yum update"
    Code:
    Repository update is listed more than once in the configuration
    Repository base is listed more than once in the configuration
    Repository addons is listed more than once in the configuration
    Repository extras is listed more than once in the configuration
    Setting up Update Process
    Setting up repositories
    http://caos.fortressitx.com/centos/4/addons/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Cannot open/read repomd.xml file for repository: addons
    failure: repodata/repomd.xml from addons: [Errno 256] No more mirrors to try.
    Error: failure: repodata/repomd.xml from addons: [Errno 256] No more mirrors to try.
    
    Also tried a yum clean all - what next :(
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Contact your server provider as they have hard-coded the CentOS repositories with their own. Alternatively, use the default CentOS configuration by removing all the lines below and including [base] and then ensure the following is in /etc/yum.repo/CentOS-Base.repo:

    Code:
    # 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=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    priority=1
    protect=1
    
    #released updates 
    [update]
    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=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    priority=1
    protect=1
    
    #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=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    priority=1
    protect=1
    
    #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
    priority=1
    protect=1
    
    #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
    priority=2
    protect=1
    
    #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
    priority=2
    protect=1
    
    Then do:

    yum clean all

    Backup any files before you modify them.
     
  3. Mat-d-rat

    Mat-d-rat Well-Known Member

    Joined:
    Jul 30, 2003
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    DOH! Walk into a brick wall, contacted data center I can see the files, but I'll get them to sort the mess...
     
Loading...

Share This Page