[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

 

转载于:https://www.cnblogs.com/hellotracy/articles/5136474.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值