1. 程式人生 > >解決:yum安裝軟件包Transaction Check Error錯誤

解決:yum安裝軟件包Transaction Check Error錯誤

管理工具 軟件包 yum

解決:yum安裝軟件包Transaction Check Error錯誤
yum(YellowdogUpdater,Modified)是軟件包管理工具,就不多說了。
錯誤產生的環境:
OS:CentOS release 6.5 (Final)
uname -r:2.6.32-431.el6.x86_64

在yum安裝gnaglia時遇到的,具體錯誤如下:

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
-------------

可以看出來是軟件包版本沖突造成的:

[[email protected] ~]# 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
[[email protected] ~]# 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 
[[email protected]
/* */ ~]# 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安裝指定版本

再次安裝,成功!搞定!

本文出自 “炫維” 博客,請務必保留此出處http://xuanwei.blog.51cto.com/11489734/1926091

解決:yum安裝軟件包Transaction Check Error錯誤