Search This Blog

Tuesday, November 15, 2011

[CentOS] yum update db error

當使用yum install時,如果有出現下列錯誤(error)

updates/primary_db

http://ftp.iij.ad.jp/pub/linux/centos/5.7/updates/x86_64/reposdata/primary.sqlite.bz2:[Errno -1] Metadata file does not match checksum

解決方式如下(Solution)

yum clean all

rm -f /var/lib/rpm/_db*

rpm --rebuilddb

No comments: