Centos yum 安装 git-svn

Centos yum 安装 git-svn

在 Centos 上运行 yum install

   yum install git-svn

产生以下错误:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.eshk.hk
 * base: centos.01link.hk
 * epel: mirror.bjtu.edu.cn
 * extras: mirror.eshk.hk
 * rpmforge: apt.sw.be
 * updates: mirror.vpshosting.com.hk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git-svn.i386 0:1.7.3.4-1.el5.rf set to be updated
--> Processing Dependency: perl(SVN::Core) for package: git-svn
--> Processing Dependency: perl(Error) for package: git-svn
--> Processing Dependency: perl(Term::ReadKey) for package: git-svn
--> Running transaction check
---> Package perl-Error.noarch 1:0.17010-1.el5 set to be updated
---> Package perl-TermReadKey.i386 0:2.30-4.el5 set to be updated
---> Package subversion-perl.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Processing Dependency: subversion = 1.4.2-4.el5_3.1 for package: subversion-perl
--> Finished Dependency Resolution
subversion-perl-1.4.2-4.el5_3.1.i386 from base has depsolving problems
  --> Missing Dependency: subversion = 1.4.2-4.el5_3.1 is needed by package subversion-perl-1.4.2-4.el5_3.1.i386 (base)
Error: Missing Dependency: subversion = 1.4.2-4.el5_3.1 is needed by package subversion-perl-1.4.2-4.el5_3.1.i386 (base)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

答案1

这看起来就像所谓的存储库地狱。问题是 RPMForge 中的 subversion 不能满足将作为依赖项安装的基本存储库中的 subversion-perl。您应该删除从 RPMForge 存储库安装的 subversion,然后暂时禁用 RPMForge 存储库,然后从基础存储库安装 subversion 和 subversion-perl。之后您可以重新启用 RPMForge 并安装 svn-git。

答案2

这可能是一个简单的解决方法..试试这个

rpm -ivh ftp://ftp.icm.edu.pl/vol/rzm1/linux-centos/5.5/os/x86_64/CentOS/subversion-1.4.2-4.el5_3.1.i386.rpm

然后尝试你的 yum 命令

相关内容