Skip to main content

CentOS cPanel ISO - yum update errors

Comments

9 comments

  • cPanelMichael
    Hello :) It's possible your server does not have enough memory to support the "yum update" command. Try editing the /etc/yum/pluginconf.d/fastestmirror.conf file and change "enable=1" to "enable=0" to see if that makes a difference. Note the memory requirements for cPanel are listed here: Hardware Requirements Thank you.
    0
  • envisage
    Hi cPanelMichael, thanks for your quick reply. I came across this solution on another thread but unfortunately did not work for me. This server has 12GB memory and plenty of HDD space. Could there be anything else? Below is a snippet of my "top" output for memory: Mem: 12197804k total, 909404k used, 11288400k free, 49248k buffers Swap: 6168572k total, 0k used, 6168572k free, 425984k cached Thanks again
    0
  • cPanelMichael
    You could try reinstalling Python, but since this is a fresh installation, you may simply want to try reinstalling CentOS 6 on it's own and then installing cPanel separately. Thank you.
    0
  • envisage
    Thanks cPanelMichael, what would be the commands to reinstall Python without using yum? I have been reading this thread, and believe this will help but am unsure how to translate the solution into CentOS 6 and x86_64
    0
  • cPanelMichael
    You could try "yum reinstall python", but reinstalling the OS is likely the best way to go. The error indicates the initial installation may not have completed successfully. Thank you.
    0
  • envisage
    Thanks, unfortunately reinstalling the OS isn't an option so will work on trying to reinstall python using rpm since any yum command gives the same error. The info in this thread ([url=http://forums.cpanel.net/general-discussion/115905-yum-updatesd-issue-post509305.html#post509305]yum-updatesd issue - cPanel Forums) seems applicable to me, just need to find the x86_64 Centos 6 versions of these packages
    0
  • cPanelMichael
    Typically you can find those packages at the official CentOS mirrors. EX: [url=http://mirror.centos.org/centos/6/os/x86_64/Packages/]Index of /centos/6/os/x86_64/Packages Thank you.
    0
  • envisage
    Just a followup for anyone else with the same issue, with the help of cPanel support we ended up finding the problem. It turned out to be a corrupt RPM database, as all the needed rpm packages were actually already installed but not recognised. The following command rebuilt the RPM database and yum started functioning properly afterwards: for i in `find /var/lib/rpm/ -type f -name __db.00*`; do mv -v $i $i.old; done db_verify /var/lib/rpm/Packages rpm -v --rebuilddb yum clean all
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.