centos 安装软件报错

Centos 6 Yum Update Error:-  Requires: python(abi) = 2

[root@gts250 rajiv]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* elrepo: jur-linux.org
* extras: mirror.nbrc.ac.in
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.nbrc.ac.in
Setting up Update Process
Resolving Dependencies
–> Running transaction check
—> Package libsmbclient.x86_64 0:3.6.9-151.el6 will be obsoleted
—> Package libsmbclient0.x86_64 0:3.5.21-44.el5 will be obsoleting
–> Processing Dependency: libwbclient.so.0()(64bit) for package: libsmbclient0-3.5.21-44.el5.x86_64
–> Processing Dependency: libldap-2.3.so.0()(64bit) for package: libsmbclient0-3.5.21-44.el5.x86_64
–> Processing Dependency: liblber-2.3.so.0()(64bit) for package: libsmbclient0-3.5.21-44.el5.x86_64
—> Package python-beaker.noarch 0:1.3.1-6.el6 will be updated
—> Package python-beaker.noarch 0:1.5.3-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-beaker-1.5.3-1.el5.rf.noarch
—> Package python-mako.noarch 0:0.3.4-1.el6 will be updated
—> Package python-mako.noarch 0:0.3.5-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-mako-0.3.5-1.el5.rf.noarch
—> Package python-markupsafe.x86_64 0:0.9.2-4.el6 will be updated
—> Package python-markupsafe.x86_64 0:0.11-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-markupsafe-0.11-1.el5.rf.x86_64
—> Package python-paramiko.noarch 0:1.7.5-2.1.el6 will be updated
—> Package python-paramiko.noarch 0:1.7.6-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-paramiko-1.7.6-1.el5.rf.noarch
—> Package samba.x86_64 0:3.6.9-151.el6 will be obsoleted
—> Package samba-client.x86_64 0:3.6.9-151.el6 will be obsoleted
—> Package samba-common.x86_64 0:3.6.9-151.el6 will be obsoleted
—> Package samba-winbind.x86_64 0:3.6.9-151.el6 will be obsoleted
—> Package samba-winbind-clients.x86_64 0:3.6.9-151.el6 will be obsoleted
—> Package samba3.x86_64 0:3.5.21-44.el5 will be obsoleting
—> Package samba3-client.x86_64 0:3.5.21-44.el5 will be obsoleting
–> Processing Dependency: libreadline.so.5()(64bit) for package: samba3-client-3.5.21-44.el5.x86_64
—> Package samba3-winbind.x86_64 0:3.5.21-44.el5 will be obsoleting
–> Running transaction check
—> Package compat-openldap.x86_64 1:2.3.43-2.el6 will be installed
—> Package compat-readline5.x86_64 0:5.2-17.1.el6 will be installed
—> Package libwbclient0.x86_64 0:3.5.21-44.el5 will be installed
—> Package python-beaker.noarch 0:1.5.3-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-beaker-1.5.3-1.el5.rf.noarch
—> Package python-mako.noarch 0:0.3.5-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-mako-0.3.5-1.el5.rf.noarch
—> Package python-markupsafe.x86_64 0:0.11-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-markupsafe-0.11-1.el5.rf.x86_64
—> Package python-paramiko.noarch 0:1.7.6-1.el5.rf will be an update
–> Processing Dependency: python(abi) = 2.4 for package: python-paramiko-1.7.6-1.el5.rf.noarch
–> Processing Conflict: krb5-libs-1.10.3-10.el6.i686 conflicts libsmbclient < 3.5.10-124
–> Processing Conflict: krb5-libs-1.10.3-10.el6.x86_64 conflicts libsmbclient < 3.5.10-124
–> Finished Dependency Resolution
Error: Package: python-markupsafe-0.11-1.el5.rf.x86_64 (rpmforge)
Requires: python(abi) = 2.4
Installed: python-2.6.6-36.el6.x86_64 (@base)
python(abi) = 2.6
Error: krb5-libs conflicts with libsmbclient0-3.5.21-44.el5.x86_64
Error: Package: python-beaker-1.5.3-1.el5.rf.noarch (rpmforge)
Requires: python(abi) = 2.4
Installed: python-2.6.6-36.el6.x86_64 (@base)
python(abi) = 2.6
Error: Package: python-mako-0.3.5-1.el5.rf.noarch (rpmforge)
Requires: python(abi) = 2.4
Installed: python-2.6.6-36.el6.x86_64 (@base)
python(abi) = 2.6
Error: Package: python-paramiko-1.7.6-1.el5.rf.noarch (rpmforge)
Requires: python(abi) = 2.4
Installed: python-2.6.6-36.el6.x86_64 (@base)
python(abi) = 2.6
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest
[root@gts250 rajiv]#

The error message indicates yum is trying to install from the repoforge el5 repository instead of el6. This needs to be corrected.

Here is the solution for this problem:-

solution :- reinstall rpmforge

go to terminal

01.

[root@gts250 rajiv]# su

02.

[root@gts250 rajiv]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

03.

[root@gts250 rajiv]# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

 

04.

[root@gts250 rajiv]# yum clean all

05.

[root@gts250 rajiv]# yum update

实测这种方法可行。

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值