HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   yum update problem (http://www.howtoforge.com/forums/showthread.php?t=26539)

Camran 3rd September 2008 14:31

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

falko 4th September 2008 15:35

Run
Code:

yum clean all
yum makecache

and try again.

Camran 4th September 2008 19:52

thanks falko
 
Quote:

Originally Posted by falko (Post 143583)
Run
Code:

yum clean all
yum makecache

and try again.

thanks falko, your great :X

chipsafts 4th September 2008 20:56

Quote:

Originally Posted by Camran (Post 143635)
thanks falko, your great :X

look at this whole site -
I second the emotion :-)

Camran 4th September 2008 22:24

i would like
 
Quote:

Originally Posted by chipsafts (Post 143644)
look at this whole site -
I second the emotion :-)

i would like to say thank to everyone who post on my questions ;)
thank u :D

Camran 4th September 2008 22:29

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

chipsafts 4th September 2008 23:01

I'd wait a day before trying again. they may be having problems with the files at their end.

Camran 5th September 2008 07:07

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



All times are GMT +2. The time now is 16:27.

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