Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question

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

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

add comment

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).

share|improve this answer
add comment

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/ ..?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.