Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member Mat-d-rat's Avatar
    Join Date
    Jul 2003
    Posts
    94

    Default Problems with YUM

    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
    ## # Mat # ##
    www.matmoo.com

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member Mat-d-rat's Avatar
    Join Date
    Jul 2003
    Posts
    94

    Default

    DOH! Walk into a brick wall, contacted data center I can see the files, but I'll get them to sort the mess...
    ## # Mat # ##
    www.matmoo.com

Similar Threads & Tags
Similar threads

  1. Yum update problems
    By johneve in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-03-2010, 09:31 AM
  2. CentOS and YUM problems
    By Mark36ph in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-01-2008, 10:57 AM
  3. problems with yum.conf
    By staylor in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-11-2007, 09:44 AM
  4. yum problems :(
    By moFBush in forum Database Discussions
    Replies: 8
    Last Post: 01-03-2006, 01:26 AM
  5. Yum.conf Problems with Core 4
    By lloyd_tennison in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 11-01-2005, 10:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube