This proble happened a lot recently, no idea what’s wrong with CentOS.

updates/primary_db 687 kB 00:02

http://mirror.nus.edu.sg/centos/5/updates/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum

I try to clean the cache, but still doesn’t work

Solution: Remove the following lines in /var/cache/yum/updates/repomd.xml

<data type=”primary_db”>

<location href=”repodata/primary.sqlite.bz2″/>

<checksum type=”sha”>d36796c21c77035e68c2ae2e7dc486d75d4659cd</checksum>

1269791791

<open-checksum type=”sha”>5c914da1b9b979b2097ff69062ca21783d5190d7</open-checksum>

<database_version>10</database_version>

</data>