Portal Home > Knowledgebase > Articles Database > "yum update" failing on CentOS 5


"yum update" failing on CentOS 5




Posted by RBBOT, 06-24-2008, 08:18 AM
I'm not sure if this is todo with the imminent release of 5.2, but I'm getting the following messages when running "yum update": Anyone else having problems or know how to resolve this? yum is only using the standard CentOS-Base repositories. Searching for yum-metadata-parse gives:

Posted by Red Squirrel, 06-24-2008, 05:33 PM
I get something similar but instead it just goes "nothing to do" without installing. I find with CentOS you have to install most things manually. Though the RPMs go in smoothly with no dependancy errors so its just as easy as using Yum.

Posted by cywkevin, 06-24-2008, 07:10 PM
try yum upgrade instead of update when updating to a new OS release.

Posted by RBBOT, 06-25-2008, 09:41 AM
I think they must have been part-way through pushing the new release to the servers at the time I tried it - today it is working normally.

Posted by Webdude, 06-25-2008, 09:45 AM
Does anyone know if doing it this simply will break anything for either cPanel or Hsphere servers.

Posted by PCS-Chris, 06-25-2008, 09:58 AM
I've updated two cPanel servers from CentOS 5.1 > 5.2 and I've not seen any issues.

Posted by bonjurkes, 06-25-2008, 01:06 PM
so can you update your Centos 5.1 > Centos 5.2 using yum update ?

Posted by Lsupport, 06-25-2008, 01:45 PM
Do the steps below.

Posted by bonjurkes, 06-25-2008, 04:41 PM
it still shows only update as kernel-PAE

Posted by Lsupport, 06-26-2008, 02:31 AM
Do you have this same mirror list in /etc/yum.com ? if not change your mirrors as follows. After that run

Posted by vip2, 06-26-2008, 03:01 AM
Using the "yum upgrade" command?

Posted by bonjurkes, 06-26-2008, 06:33 AM
root@server [/etc/yum.repos.d]# yum update Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * testing: mirror.centos.org * update: mirror.centos.org * base: mirror.centos.org * addons: mirror.centos.org * extras: mirror.centos.org http://mirror.centos.org/centos/5/te...ta/repomd.xml: [Errno 14] H TTP Error 404: Not Found Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: testing. Please verify its path and try again root@server [/etc/yum.repos.d]#

Posted by bonjurkes, 06-26-2008, 06:46 AM
i deleted testing section, and now it only shows Kernal-PAE again. exclude=apache* bind-chroot courier* dovecot* exim* httpd* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* spamassassin* squirrelmail* i found this exclude list in yum.conf. can it be because of that?

Posted by jtonsupport, 06-26-2008, 07:01 AM
Just copy/paste the commands mkdir /usr/local/src/yum cd /usr/local/src/yum wget http://centos.cs.ucr.edu/centos/4/ap...6-2.noarch.rpm wget http://centos.cs.ucr.edu/centos/4/ap...1.6-1.i386.rpm wget http://centos.cs.ucr.edu/centos/4/ap...2.6-4.i386.rpm wget http://centos.cs.ucr.edu/centos/4/ap...6-2.noarch.rpm wget http://centos.cs.ucr.edu/centos/4/ap...4.3.noarch.rpm wget http://centos.cs.ucr.edu/centos/4/ap...2.2-1.i386.rpm rpm -Uvh *rpm

Posted by edsong, 06-26-2008, 07:04 AM
I used Lsupport list and it worked perfectly! I just removed the testing section as you mentioned, as it showed a 404 for me too. As for your error, did you try 'yum clean all' after setting up the repos? I ran this after editing CentOS-Base.repo file: # yum clean all # yum upgrade

Posted by bonjurkes, 06-26-2008, 07:20 AM
still same, only Kernal-Pae is on update list.

Posted by edsong, 06-26-2008, 07:35 AM
Then probably it has to do with your exclude list. I'm afraid, however, that such exclude list may have something to do with your control panel. Do you use Cpanel or WHM?

Posted by bonjurkes, 06-26-2008, 07:36 AM
cpanel and whm is same i guess I am using whm

Posted by edsong, 06-26-2008, 07:43 AM
Yes, they come bundled together. Unfortunately I don't normally use those, so I'm not sure if you should touch those excludes. Anyone?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Kernel Timer Frequency (Views: 723)


Language: