#1  
Old 3rd September 2008, 14:31
Camran Camran is offline
Member
 
Join Date: May 2008
Posts: 30
Thanks: 2
Thanked 3 Times in 3 Posts
Default yum update problem

i Have CentOS 5.2 when i want to use
yum update
i got this message:


[root@cp ~]# yum update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 91 kB 00:00
http://centosh3.centos.org/centos/5....rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 91 kB 00:00
http://mirror.nsc.liu.se/CentOS/5.2/...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 139 kB 00:00
http://centosk2.centos.org/centos/5....rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 96 kB 00:00
http://centosa3.centos.org/centos/5....rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 91 kB 00:00
http://centosq.centos.org/centos/5.2...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.

i also imported the GPG keys for software packages:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

please help me to have latest update
Reply With Quote
Sponsored Links
  #2  
Old 4th September 2008, 15:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,730 Times in 2,568 Posts
Default

Run
Code:
yum clean all
yum makecache
and try again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 4th September 2008, 19:52
Camran Camran is offline
Member
 
Join Date: May 2008
Posts: 30
Thanks: 2
Thanked 3 Times in 3 Posts
Default thanks falko

Quote:
Originally Posted by falko View Post
Run
Code:
yum clean all
yum makecache
and try again.
thanks falko, your great :X
Reply With Quote
  #4  
Old 4th September 2008, 20:56
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by Camran View Post
thanks falko, your great :X
look at this whole site -
I second the emotion :-)
Reply With Quote
  #5  
Old 4th September 2008, 22:24
Camran Camran is offline
Member
 
Join Date: May 2008
Posts: 30
Thanks: 2
Thanked 3 Times in 3 Posts
Default i would like

Quote:
Originally Posted by chipsafts View Post
look at this whole site -
I second the emotion :-)
i would like to say thank to everyone who post on my questions
thank u
Reply With Quote
  #6  
Old 4th September 2008, 22:29
Camran Camran is offline
Member
 
Join Date: May 2008
Posts: 30
Thanks: 2
Thanked 3 Times in 3 Posts
Default

This is the result of whay you said:

[root@cp ~]# yum clean all
Loading "installonlyn" plugin
Cleaning up Everything
[root@cp ~]# yum makecache
Loading "installonlyn" plugin
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 81 kB 00:43
################################################## 282/282
primary.xml.gz 100% |=========================| 139 kB 00:00
http://centosh2.centos.org/centos/5....rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 161 kB 00:00
http://centosj.centos.org/centos/5.2...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
primary.xml.gz 100% |=========================| 111 kB 00:00
http://centose.centos.org/centos/5.2...rimary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.

i dont know what's this why meta data file does not match checksum
Reply With Quote
  #7  
Old 4th September 2008, 23:01
chipsafts chipsafts is offline
Senior Member
 
Join Date: Nov 2007
Posts: 184
Thanks: 2
Thanked 6 Times in 6 Posts
Default

I'd wait a day before trying again. they may be having problems with the files at their end.
Reply With Quote
  #8  
Old 5th September 2008, 07:07
Camran Camran is offline
Member
 
Join Date: May 2008
Posts: 30
Thanks: 2
Thanked 3 Times in 3 Posts
 
Thumbs up Solved - yum "Metadata file does not match checksum"

Finally i solved my problem and would like to share it with you friends as i think it is a best linux forum which i can find.

I did the following as per your advise.

Code:
yum clean all
yum make cache
yum update
It Doesnt Work for me.

but solved the problem after that i edit /etc/yum.conf
and add the
Code:
http_caching=packages
'packages' means that only RPM package downloads should be cached (but not repository metadata downloads).
then run:
Code:
yum clean metadate
yum update
my yum.conf look like this:


Code:
[main]
cachedir=/var/cache/yum
http_caching=packages
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
Reply With Quote
The Following User Says Thank You to Camran For This Useful Post:
falko (5th September 2008)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum update Katongole Installation/Configuration 1 5th August 2008 15:33
Problem after update to 2.2.24 adm-computers General 1 1st August 2008 11:46
Problem with adding new clients after update bolero Installation/Configuration 4 9th July 2008 19:31
Yum update fails when setting up server RonH Installation/Configuration 2 17th January 2008 14:21
Problem with the new update (.19) galphanet Installation/Configuration 1 9th January 2008 19:08


All times are GMT +2. The time now is 13:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.