yum update错误Transaction Check Error解决方式

本文介绍了遇到yum update出现Transaction Check Error时的解决方法,包括删除引起冲突的package,如systemtap,并通过查看错误提示、卸载指定版本来解决依赖问题。

  在网上查看了yum update引起错误Transaction Check Error的情况可能有多种,我这里只讲述我遇到的情况:

在我执行yum update时的报错信息如下:

Running Transaction Test


Transaction Check Error:
  file /usr/share/locale/en/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-client-2.5-5.el6.x86_64
  file /usr/share/locale/fr/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-client-2.5-5.el6.x86_64
  file /usr/share/locale/pl/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-client-2.5-5.el6.x86_64
  file /usr/share/locale/en/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-devel-2.5-5.el6.x86_64
  file /usr/share/locale/fr/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-devel-2.5-5.el6.x86_64
  file /usr/share/locale/pl/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-devel-2.5-5.el6.x86_64
  file /usr/share/locale/en/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-runtime-2.5-5.el6.x86_64
  file /usr/share/locale/fr/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-runtime-2.5-5.el6.x86_64
  file /usr/share/locale/pl/LC_MESSAGES/systemtap.mo from install of systemtap-2.7-2.el6.x86_64 conflicts with file from package systemtap-runtime-2.5-5.el6.x86_64

Error Summary

在网上搜索,有人建议把引起错误的package先删掉,所以我systemtap这个包,然后yum update,成功了.但这不是根本解决问题的,因为我必须要把卸载的包再安装上,很不幸,当我执行yum install systemtap时仍然出现了上面的错误,这时仔细看出错信息发现有两个版本,然后解决和查看的方式如下:

    1) 按照错误提示我先查看了 systemtap-client :

    rpm -q systemtap-client --qf '%{NAME} %{VERSION} %{ARCH}'
    执行的结果是:
    systemtap-client 2.5 x86_64 systemtap-client 2.7 x86_64
    发现确实安装了两个版本的....

     2) 卸载

      执行命令:

    rpm -e --allmatches systemtap-client
      报错了:
     error: "systemtap-client" specifies multiple packages:
     systemtap-client-2.5-5.el6.x86_64
     systemtap-client-2.7-2.el6.x86_64

     再在网上搜索一下错误错误解决方式,我是按照 该链接 文章的解决方式,卸载时带上参数,执行一下命令:

     rpm -e --allmatches systemtap-client
     卸载成功了,然后把冲突的包都卸载掉,然后重新yum install systemtap,安装成功.


  其实原则上不用这么麻烦,可以在一开始就卸载掉冲突的包,然后直接yum update就可以了,而不用先卸载,再安装的方式.


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值