I get the error as following. my linux is centos5.

yum list
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: centos.ustc.edu.cn
 * base: centos.ustc.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Error: unsupported file format
link|improve this question
feedback

migrated from stackoverflow.com Dec 8 '10 at 16:47

This question came from our site for professional and enthusiast programmers.

2 Answers

That error is coming from sqlite, which is pretty bad. You can do:

yum clean dbcache

...and it should work. If that doesn't then the "yum clean all" hammer will fix the problem. It's kind of weird for any of the sqlite files to get corrupted though, you might want to check smart data etc. (make sure you don't have general FS corruption).

link|improve this answer
feedback

I think you have modified files /etc/yum.repos.d/*.repo or have you added any new repo path to the directory /etc/yum.repos.d/ ..?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown