layout: post
title: yum、rpm —issues
date: 2018-04-27
tags: [“Linux”,”包管理”]
一、CS服务器升级补丁包rpm数据库损坏修复
在修复阿里云ECS的系统漏洞时遇到一个问题:
使用yum update packeges
时,更新失败,导致rpm数据库损坏,即:
- 路径内的文件损坏
会出现如下错误提示:
Loaded plugins: security
Setting up Downgrade Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.x86_64 0:2.12-1.209.el6_9.1 will be a downgrade
--> Processing Dependency: glibc-common = 2.12-1.209.el6_9.1 for package: glibc-2.12-1.209.el6_9.1.x86_64
---> Package glibc.x86_64 0:2.12-1.209.el6_9.2 will be erased
--> Finished Dependency Resolution
You could try using --skip-broken to work around the problem
** Found 3352 pre-existing rpmdb problem(s), 'yum check' output follows:
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of libc.so.6()(64bit)
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of libpthread.so.0()(64bit)
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of libpthread.so.0(GLIBC_2.2.5)(64bit)
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of librt.so.1()(64bit)
ConsoleKit-0.4.1-3.el6.x86_64 has missing requires of rtld(GNU_HASH)
ConsoleKit-libs-0.4.1-3.el6.x86_64 has missing requires of libc.so.6()(64bit)
ConsoleKit-libs-0.4.1-3.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
ConsoleKit-libs-0.4.1-3.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
ConsoleKit-libs-0.4.1-3.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
ConsoleKit-libs-0.4.1-3.el6.x86_64 has missing requires of libpthread.so.0()(64bit)
ConsoleKit-libs-0.4.1-3.el6.x86_64 has missing requires of librt.so.1()(64bit)
ConsoleKit-libs-0.4.1-3.el6.x86_64 has missing requires of rtld(GNU_HASH)
MAKEDEV-3.24-6.el6.x86_64 has missing requires of libc.so.6()(64bit)
MAKEDEV-3.24-6.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
MAKEDEV-3.24-6.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.3)(64bit)
MAKEDEV-3.24-6.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
MAKEDEV-3.24-6.el6.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
MAKEDEV-3.24-6.el6.x86_64 has missing requires of rtld(GNU_HASH)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6()(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libpthread.so.0()(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of libpthread.so.0(GLIBC_2.2.5)(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of librt.so.1()(64bit)
abrt-2.0.8-21.el6.centos.x86_64 has missing requires of rtld(GNU_HASH)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6()(64bit)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3)(64bit)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of libdl.so.2()(64bit)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of libpthread.so.0()(64bit)
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64 has missing requires of rtld(GNU_HASH)
abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6()(64bit)
abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64 has missing requires of rtld(GNU_HASH)
abrt-addon-python-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6()(64bit)
abrt-addon-python-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
abrt-addon-python-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
abrt-addon-python-2.0.8-21.el6.centos.x86_64 has missing requires of rtld(GNU_HASH)
abrt-libs-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6()(64bit)
abrt-libs-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
abrt-libs-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3)(64bit)
abrt-libs-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
abrt-libs-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.4)(64bit)
abrt-libs-2.0.8-21.el6.centos.x86_64 has missing requires of rtld(GNU_HASH)
abrt-tui-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6()(64bit)
abrt-tui-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.2.5)(64bit)
abrt-tui-2.0.8-21.el6.centos.x86_64 has missing requires of libc.so.6(GLIBC_2.3.4)(64bit)
abrt-tui-2.0.8-21.el6.centos.x86_64 has missing requires of rtld(GNU_HASH)
会出现大批量has missing requires of libc.so.6()
rpm数据库损坏使用yum update/install/reinstall packeges --skip-broken
并不能够解决问题
正确的命令:rpm --rebuild
文档更新时间: 2019-02-10 17:11 作者:张尚