解决:yum安装软件包Transaction Check Error错误

解决:yum安装软件包Transaction Check Error错误 
yum(YellowdogUpdater,Modified)是软件包管理工具,就不多说了。
错误产生的环境:
OS:CentOS release 6.5 (Final)
uname -r:2.6.32-431.el6.x86_64

在yum安装gnaglia时遇到的,具体错误如下:

1
2
3
4
5
6
7
8
9
10
11
12
Transaction Check Error:
Transaction Check Error:
   file  /usr/lib64/ganglia/modcpu .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
   file  /usr/lib64/ganglia/moddisk .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
   file  /usr/lib64/ganglia/modload .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
   file  /usr/lib64/ganglia/modmem .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
   file  /usr/lib64/ganglia/modmulticpu .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
   file  /usr/lib64/ganglia/modnet .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
   file  /usr/lib64/ganglia/modproc .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
   file  /usr/lib64/ganglia/modsys .so from  install  of ganglia-3.7.2-2.el6.x86_64 conflicts with  file  from package ganglia-gmond-3.6.0-1.x86_64
Error Summary
-------------

可以看出来是软件包版本冲突造成的:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[root@ganglia ~] # rpm -qa ganglia*
ganglia-gmond-modules-python-3.6.0-1.x86_64
ganglia-gmond-3.6.0-1.x86_64
ganglia-devel-3.6.0-1.x86_64
ganglia-debuginfo-3.6.0-1.x86_64
[root@ganglia ~] # yum list ganglia*
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Installed Packages
ganglia-debuginfo.x86_64                               3.6.0-1                              installed
ganglia-devel.x86_64                                   3.6.0-1                              installed
ganglia-gmond.x86_64                                   3.6.0-1                              installed
ganglia-gmond-modules-python.x86_64                    3.6.0-1                              installed
Available Packages
ganglia.i686                                           3.7.2-2.el6                          epel     
ganglia.x86_64                                         3.7.2-2.el6                          epel     
ganglia-devel.i686                                     3.7.2-2.el6                          epel     
ganglia-devel.x86_64                                   3.7.2-2.el6                          epel     
ganglia-gmetad.x86_64                                  3.7.2-2.el6                          epel     
ganglia-gmond.x86_64                                   3.7.2-2.el6                          epel     
ganglia-gmond-python.x86_64                            3.7.2-2.el6                          epel     
ganglia-web.x86_64                                     3.7.1-2.el6                          epel 
[root@ganglia ~] # rpm -qa ganglia* 
ganglia-gmond-modules-python-3.6.0-1.x86_64
ganglia-gmond-3.6.0-1.x86_64
ganglia-devel-3.6.0-1.x86_64
ganglia-debuginfo-3.6.0-1.x86_64

从上面可以看出存在的版本和yum的版本是不一致的,解决的方式就是使用相同的版本
1.现有的版本升级
2.yum安装指定版本

再次安装,成功!搞定!

本文转自 炫维 51CTO博客,原文链接:http://blog.51cto.com/xuanwei/1926091


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值