directadmin 服务器yum update提示库问题解决

常见提示如下:
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
keyutils-libs-devel is needed by krb5-devel-1.10.3-10.el6_4.6.x86_64
libselinux-devel is needed by krb5-devel-1.10.3-10.el6_4.6.x86_64
** Found 12 pre-existing rpmdb problem(s), ‘yum check’ output follows:
e2fsprogs-devel-1.41.12-3.el6.x86_64 has missing requires of e2fsprogs-libs = (’0′, ’1.41.12′, ’3.el6′)
krb5-devel-1.8.2-3.el6.x86_64 has missing requires of keyutils-libs-devel
krb5-devel-1.8.2-3.el6.x86_64 has missing requires of libselinux-devel
krb5-workstation-1.10.3-10.el6_4.6.x86_64 has missing requires of krb5-libs = (’0′, ’1.10.3′, ’10.el6_4.6′)
krb5-workstation-1.10.3-10.el6_4.6.x86_64 has missing requires of libkadm5clnt_mit.so.8()(64bit)
krb5-workstation-1.10.3-10.el6_4.6.x86_64 has missing requires of libkadm5clnt_mit.so.8(kadm5clnt_mit_8_MIT)(64bit)
krb5-workstation-1.10.3-10.el6_4.6.x86_64 has missing requires of libkadm5srv_mit.so.8()(64bit)
krb5-workstation-1.10.3-10.el6_4.6.x86_64 has missing requires of libkadm5srv_mit.so.8(kadm5srv_mit_8_MIT)(64bit)
krb5-workstation-1.10.3-10.el6_4.6.x86_64 has missing requires of libkdb5.so.6()(64bit)
krb5-workstation-1.10.3-10.el6_4.6.x86_64 has missing requires of libkdb5.so.6(kdb5_6_MIT)(64bit)
samba4-libs-4.0.0-55.el6.rc4.x86_64 has missing requires of krb5-libs >= (’0′, ’1.10′, None)
sssd-1.9.2-82.10.el6_4.x86_64 has missing requires of krb5-libs(x86-64) >= (’0′, ’1.10′, None)
Your transaction was saved, rerun it with: yum load-transaction /tmp/yum_save_tx-2013-11-02-16-00S_5wtN.yumtx
执行
yum install e2fsprogs-libs e2fsprogs e2fsprogs-devel keyutils-libs-devel libselinux-devel

如果提示源里面没有就更换为官方源
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever – Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever – Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

yum clean all
rm -f /var/lib/rpm/__db*
rpm –rebuilddb
yum update

此答案有用么?

 打印

建议阅读

mysql 错误代码汇总

1005:创建表失败1006:创建数据库失败1007:数据库已存在,创建数据库失败1008:数据库不存在,删除数据库失败1009:不能删除数据库文件导致删除数据库失败1010:不能删除数据目录导...

CentOS(Linux)中添加单个IP和批量添加多个IP地方法

一、添加单个IP地址:在/etc/sysconfig/network-scripts/中新建文件ifcfg-eth0:*,*为数字序号,多个IP则依次增大以0为例,建立文件ifcfg-eth0:...

LINUX伪静态规则之Apache版本

URL 静态化是一个有利于搜索引擎的设置,通过 URL 静态化,达到原来是动态的 PHP 页面转换为静态化的 HTML 页面...

IIS的access数据库ASP“不能更新数据库或对象为只读”解决办法

最近帮别人处理下数据,发现添加数据时,就提示"ASP 不能更新。数据库或对象为只读。",从网上找了,也没有解决我的问题. 1、服务器的数据目录mdb文件所在的目录,是只读的...

windows 2003 单网卡 PPTP VPN环境搭建

打开控制面板-管理工具-路由和远程访问-右键配置并启用路由和远程访问-下一步-自定义配置选择 1 VPN访问 和...

Powered by WHMCompleteSolution