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- Conflicts CENTOS. Please help

Discussion in 'General Discussion' started by prodigy, May 18, 2005.

  1. prodigy

    prodigy Member

    Joined:
    Dec 16, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I am using the following on my linux system:
    WHM 10.1.0 cPanel 10.2.0-S83
    CentOS 4.0 i686

    I am having really annoying YUM problems. I have been running Centos for sometime now after upgrading from Red Hat 9, everything on my server seems to work well, but i would like to be able to update and upgrade efficiently.
    I keep getting udev conflicts when i have already removed previous kernels.
    I have used # rpm -qa|grep kernel to confirm this.

    Can someone please help me, it would be much appreciated.
    Heres what happens when I run update and upgrade:

    root@server [~]# yum upgrade
    Gathering header information file(s) from server(s)
    Server: CentOS-4 - Addons
    Server: CentOS-4 - Base
    Server: CentOS-4 - Extras
    Server: CentOS-4 - Updates
    Finding updated packages
    Downloading needed headers
    Finding obsoleted packages
    Resolving dependencies
    .package perl-DB_File needs libdb-4.0.so (not provided)
    package perl needs libdb-4.0.so (not provided)
    package exim needs libdb-4.0.so (not provided)
    package pine needs libcom_err.so.3 (not provided)
    package imap needs libcom_err.so.3 (not provided)

    root@server [~]# yum update
    Gathering header information file(s) from server(s)
    Server: CentOS-4 - Addons
    Server: CentOS-4 - Base
    Server: CentOS-4 - Extras
    Server: CentOS-4 - Updates
    Finding updated packages
    Downloading needed headers
    Resolving dependencies
    .package perl-DB_File needs libdb-4.0.so (not provided)
    package perl needs libdb-4.0.so (not provided)
    package exim needs libdb-4.0.so (not provided)
    package redhat-config-soundcard needs /usr/bin/python2.2 (not provided)
    package redhat-config-date needs /usr/bin/python2.2 (not provided)
    package redhat-config-language needs /usr/bin/python2.2 (not provided)
    package redhat-config-keyboard needs /usr/bin/python2.2 (not provided)
    package redhat-config-samba needs /usr/bin/python2.2 (not provided)
    package redhat-config-nfs needs /usr/bin/python2.2 (not provided)
    package redhat-config-kickstart needs /usr/bin/python2.2 (not provided)
    package redhat-config-securitylevel needs /usr/bin/python2.2 (not provided)
    package redhat-config-mouse needs /usr/bin/python2.2 (not provided)
    package redhat-config-rootpassword needs /usr/bin/python2.2 (not provided)
    package redhat-config-users needs /usr/bin/python2.2 (not provided)
    package rh-postgresql-server needs libcom_err.so.3 (not provided)
    package pine needs libcom_err.so.3 (not provided)
    package imap needs libcom_err.so.3 (not provided)

    ---------------
    Please help me. I have looked through alot of tutorials which in the end havn't helped been able to fix it.

    Thanks alot.
     
  2. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    just a stab in the dark:
    have you checked and adjusted your upgrade mirrors in yum , so they are all poining to centos 4 instead of centos3.4 ?
     
  3. prodigy

    prodigy Member

    Joined:
    Dec 16, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    yum.conf

    Yeh mate they already do point to centos 4 instead of 3. Heres my yum.conf:

    Code:
    [main]
    cachedir=/var/cache/yum
    exclude=mysql* php* spamassassin* httpd* mod_ssl* perl*
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug$
    tolerant=1
    exactarch=1
    
    [base]
    name=CentOS-$releasever - Base
    baseurl=http://public.planetmirror.com/pub/centos/4.0/os/$basearch/
    gpgcheck=1
    
    #released updates
    [update]
    name=CentOS-$releasever - Updates
    baseurl=http://public.planetmirror.com/pub/centos/4.0/updates/$basearch/
    gpgcheck=1
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    baseurl=http://public.planetmirror.com/pub/centos/4.0/addons/$basearch/
    gpgcheck=1
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    baseurl=http://mirror.pacific.net.au/linux/CentOS/4/extras/$basearch/
    gpgcheck=1
    
    Any suggetions?
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Hmm, I'd suggest trying the actual CentOS site instead of a mirror. I have seen something similar when the mirror is not be up to date or is broken. At the very least, try a different mirror to planetmirror.com, though I'd still suggest checking with:
    http://mirror.centos.org/centos/
     
  5. prodigy

    prodigy Member

    Joined:
    Dec 16, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I tried the main centos mirror, but with no luck, I got the same errors as above.
    Any other suggestions?
     
  6. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    there will be a centos-yu.conf [ am not very sure of the name.. its something like that] at /etc

    just replace it with the yum.conf that is already there. it will work.
     
  7. prodigy

    prodigy Member

    Joined:
    Dec 16, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Nope, no luck. There is no centos-yum.conf file or similar in the /etc/ directory. Could you possibly post your file so I could copy it and create a new yum.conf.
    If anyone with a fully working CentOS 4 server could do this it would be much appreciated.
    Thankyou
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I guess this is the danger of upgrading to CentOS4 if that is what you have done, instead of following the CentOS and RH recommended path of starting with a fresh OS installation - if that's what you did :eek:
     
  9. prodigy

    prodigy Member

    Joined:
    Dec 16, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Damn, so theres no hope? :P
    Surely there must be some way of fixing this without wiping it all and starting again. I have tried upgrading the indivdual rpms, but ther are all being used by other packages, so yeh can't really do much.
    I did upgrade from RedHat 9, any last ideas anyone?
     
  10. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    if you can give me some more time.. i can try dig the working yum.conf... i need to dig it out from a sea of servers :)
     
  11. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    ===================================
    [main]
    exclude=mod_ssl* httpd* perl mysql* php*
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    retries=20

    [base]
    name=Fedora Core $releasever - $basearch - Base
    baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/$releasever/$basearch/os/


    [updates-released]
    name=Fedora Core $releasever - $basearch - Released Updates
    baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/$releasever/$basearch/

    =============================================
    This is a working yum.conf config at CentOs. Can you try this one ?
     
  12. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Remove the * after perl in the skiplist, run yum update then /scripts/updatenow;/scripts/upcp --force

    You may need to install one of the perl installers on layer1.cpanel.net if perl didn't install correctly as well.
     
  13. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    isnt that one for fedora instead of centOS 4 !?
     
  14. prodigy

    prodigy Member

    Joined:
    Dec 16, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    That is a yum configuration for Fedora, could you try and find a CentOS version?

    I did all these steps including install the latest perl from layer1.cpanel.net. When I ran yum afterwards I got the same errors as usual :(

    This isn't going well :(
     
  15. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
  16. prodigy

    prodigy Member

    Joined:
    Dec 16, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Yes, I have laready seen those threads before, I have also travelled to centos.org and found the same sort of material. I have tried it all, but unfortunately not much is happening.
     
  17. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    I would do RH9 to FC2 then FC2 to CentOS 4...however it is NOT and I repeat N.O.T for novices to do. There are many dependency changes in between and you could well and truely break the entire box if not done properly.
     
Loading...

Share This Page