[trouble shooting] Error: database disk image is malformed
安装某个软件时出现的错误
[root@centos6 yum.repos.d]# yum info vim
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.sina.cn
* epel: mirrors.hustunique.com
* extras: mirrors.aliyun.com
* rpmforge: mirrors.digipower.vn
* updates: centos.ustc.edu.cn
Error: database disk image is malformed
[解决方案]
可以通过清除数据库缓存的方式处理
[root@centos6 yum.repos.d]# yum clean dbcache
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: base epel extras rpmforge updates
6 sqlite files removed
之后便能正常使用了
[root@centos6 yum.repos.d]# yum info gparted
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.sina.cn
* epel: mirrors.yun-idc.com
* extras: mirrors.aliyun.com
* rpmforge: mirrors.digipower.vn
* updates: centos.ustc.edu.cn
Available Packages
Name : gparted
Arch : x86_64
Version : 0.19.1
Release : 3.el6
Size : 1.6 M
Repo : epel
Summary : Gnome Partition Editor
URL : http://gparted.sourceforge.net
License : GPLv2+
Description : GParted stands for Gnome Partition Editor and is a graphical frontend to
: libparted. Among other features it supports creating, resizing, moving
: and copying of partitions. Also several (optional) filesystem tools provide
: support for filesystems not included in libparted. These optional packages
: will be detected at runtime and don't require a rebuild of GParted