天天看点

解决: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时遇到的,具体错误如下:

<code>Transaction Check Error:</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/modcpu</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/moddisk</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/modload</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/modmem</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/modmulticpu</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/modnet</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/modproc</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>  </code><code>file</code> <code>/usr/lib64/ganglia/modsys</code><code>.so from </code><code>install</code> <code>of ganglia-3.7.2-2.el6.x86_64 conflicts with </code><code>file</code> <code>from package ganglia-gmond-3.6.0-1.x86_64</code>

<code>Error Summary</code>

<code>-------------</code>

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

<code>[root@ganglia ~]</code><code># rpm -qa ganglia*</code>

<code>ganglia-gmond-modules-python-3.6.0-1.x86_64</code>

<code>ganglia-gmond-3.6.0-1.x86_64</code>

<code>ganglia-devel-3.6.0-1.x86_64</code>

<code>ganglia-debuginfo-3.6.0-1.x86_64</code>

<code>[root@ganglia ~]</code><code># yum list ganglia*</code>

<code>Loaded plugins: fastestmirror, security</code>

<code>Loading mirror speeds from cached hostfile</code>

<code>Installed Packages</code>

<code>ganglia-debuginfo.x86_64                               3.6.0-1                              installed</code>

<code>ganglia-devel.x86_64                                   3.6.0-1                              installed</code>

<code>ganglia-gmond.x86_64                                   3.6.0-1                              installed</code>

<code>ganglia-gmond-modules-python.x86_64                    3.6.0-1                              installed</code>

<code>Available Packages</code>

<code>ganglia.i686                                           3.7.2-2.el6                          epel     </code>

<code>ganglia.x86_64                                         3.7.2-2.el6                          epel     </code>

<code>ganglia-devel.i686                                     3.7.2-2.el6                          epel     </code>

<code>ganglia-devel.x86_64                                   3.7.2-2.el6                          epel     </code>

<code>ganglia-gmetad.x86_64                                  3.7.2-2.el6                          epel     </code>

<code>ganglia-gmond.x86_64                                   3.7.2-2.el6                          epel     </code>

<code>ganglia-gmond-python.x86_64                            3.7.2-2.el6                          epel     </code>

<code>ganglia-web.x86_64                                     3.7.1-2.el6                          epel </code>

<code>[root@ganglia ~]</code><code># rpm -qa ganglia* </code>

从上面可以看出存在的版本和yum的版本是不一致的,解决的方式就是使用相同的版本

1.现有的版本升级

2.yum安装指定版本

再次安装,成功!搞定!

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

继续阅读