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
此答案有用么?
建议阅读
Powered by WHMCompleteSolution