yum命令执行后,强烈建议不要强制退出,毕竟yum是一个用python写的命令,强制退出后可能就会引发各种问题,譬如这个安装什么软件都是出现 “<span style="color: #808080;">错误:database disk image is malform ”<span style="color: #000000;">的</span></span>报错

[root@localhost yum.repos.d]# yum install lrzsz
已加载插件:fastestmirror, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
设置安装进程
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.cn99.com
 * updates: mirrors.163.com
解决依赖关系
--> 执行事务检查
---> Package lrzsz.x86_64 0:0.12.20-27.1.el6 will be 安装
错误:database disk image is malformed
[root@localhost yum.repos.d]# 

这就是典型的,因为强制退出而出现的错误,解决方法

[root@localhost yum.repos.d]# yum clean dbcache
Last modification:December 3rd, 2018 at 10:12 pm