红联Linux门户
Linux帮助

Linux下Subversion的Transaction check error解决

发布时间:2017-02-14 09:36:37来源:linux网站作者:lzufeng
最近在Centos7上面搭建Mesos,遇到了下面的错误:
Transaction check error:
file /usr/lib64/libsvn_client-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_delta-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_diff-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_fs-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_fs_base-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_fs_fs-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_fs_util-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_ra-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_ra_local-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_ra_svn-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_repos-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_subr-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
file /usr/lib64/libsvn_wc-1.so.0.0.0 from install of subversion-1.8.17-1.x86_64 conflicts with file from package subversion-libs-1.7.14-10.el7.x86_64
 
错误概要
原因是存在了两个版本的svn了。我是通过把1.7的移除了来解决冲突的。
一开始,想通过rpm remove掉,但报依赖检测失败:
[pilaf@localhost ~]$ rpm -e subversion-libs-1.7.14-10.el7.x86_64
错误:依赖检测失败:
libsvn_client-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_delta-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_diff-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_fs-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_fs_base-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_fs_fs-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_fs_util-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_ra-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_ra_local-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_ra_neon-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_ra_svn-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_repos-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_subr-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
libsvn_wc-1.so.0()(64bit) 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
subversion-libs(x86-64) = 1.7.14-10.el7 被 (已安裝) subversion-1.7.14-10.el7.x86_64 需要
 
后来通过yum remove解决:
[pilaf@localhost ~]$ sudo yum remove subversion.x86_64 subversion-libs.x86_64 
[sudo] password for pilaf: 
已加载插件:fastestmirror, langpacks
正在解决依赖关系
--> 正在检查事务
---> 软件包 subversion.x86_64.0.1.7.14-10.el7 将被 删除
---> 软件包 subversion-libs.x86_64.0.1.7.14-10.el7 将被 删除
--> 解决依赖关系完成
 
依赖关系解决
Package  架构  版本  源  大小
正在删除:
subversion  x86_64  1.7.14-10.el7  @anaconda  4.6 M
subversion-libs  x86_64  1.7.14-10.el7  @anaconda  2.5 M
事务概要
移除  2 软件包
安装大小:7.1 M
是否继续?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在删除    : subversion-1.7.14-10.el7.x86_64  1/2 
正在删除    : subversion-libs-1.7.14-10.el7.x86_64  2/2 
验证中      : subversion-1.7.14-10.el7.x86_64  1/2 
验证中      : subversion-libs-1.7.14-10.el7.x86_64  2/2
删除:
subversion.x86_64 0:1.7.14-10.el7
subversion-libs.x86_64 0:1.7.14-10.el7
完毕!
[pilaf@localhost ~]$
 
本文永久更新地址:http://www.linuxdiyf.com/linux/28386.html