Sqlite.bz2 File does not match checksum – centos 5.7

checksum

I have tried absolutely everything, without good results…

yum always fails with "sqlite.bz2 File does not match checksum" for different repositories, every single time, but always with the above error.

ive tried setting …
* http_proxy
* http_caching
* disabling fastestmirror
* changing settings in sysctl.conf

all with the same result,

Im starting to think it might be a bug?…related to http://bugs.centos.org/view.php?id=5116

Best Answer

As ive read this on another website while searching for the answer to this. The OP states 'different repositories', so it matches my difficulties as well, trying to install centos 6.2 in a directory on redhat 5.3.

The thing is that the python version of different release is different.

Python 2.6 uses hashlib to perform checksums, and Python 2.4 uses the SHA module to perform checksums. The version of the SHA module that ships with CentOS 5.3 doesn’t support sha256, which is why we get the checksum error listed above

from : http://prefetch.net/blog/index.php/2009/11/26/dealing-with-yum-checksum-errors/