微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

当我在el6上时,yum试图安装el5

当我运行以下yum命令时,我收到此错误
Package: git-1.7.10.1-1.el5.rf.x86_64 (rpmforge)
           Requires: libcurl.so.3()(64bit)"

我读到这个错误是由于运行el5 rpmforge或安装了一些el5.

我怎么解决这个问题?

$yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.kiewel-online.ch
 * epel: fedora.kiewel-online.ch
 * extras: centos.kiewel-online.ch
 * rpmforge: mirror.de.leaseweb.net
 * updates: centos.kiewel-online.ch
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.10.1-1.el5.rf will be installed
--> Processing Dependency: perl-Git = 1.7.10.1-1.el5.rf for package: git-1.7.10.1-1.el5.rf.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.10.1-1.el5.rf.x86_64
--> Processing Dependency: libexpat.so.0()(64bit) for package: git-1.7.10.1-1.el5.rf.x86_64
--> Processing Dependency: libcurl.so.3()(64bit) for package: git-1.7.10.1-1.el5.rf.x86_64
--> Running transaction check
---> Package compat-expat1.x86_64 0:1.95.8-8.el6 will be installed
---> Package git.x86_64 0:1.7.10.1-1.el5.rf will be installed
--> Processing Dependency: libcurl.so.3()(64bit) for package: git-1.7.10.1-1.el5.rf.x86_64
---> Package perl-Git.x86_64 0:1.7.10.1-1.el5.rf will be installed
--> Finished Dependency Resolution
Error: Package: git-1.7.10.1-1.el5.rf.x86_64 (rpmforge)
           Requires: libcurl.so.3()(64bit)
 You Could try using --skip-broken to work around the problem
 You Could try running: rpm -Va --nofiles --nodigest
您可以使用yum repolist来显示您启用了哪个存储库,从而显示包的来源;

(也是yum repolist -v,带有-v标志,用于对启用的存储库进行非常详细的描述)

# yum repolist
Loaded plugins: fastestmirror,security
Loading mirror speeds from cached hostfile
epel/Metalink                    |  10 kB     00:00     
 * base: mirrors.usc.edu
 * epel: epel.mirror.freedomvoice.com
 * extras: mirrors.usc.edu
 * updates: mirrors.usc.edu
Webmin                           | 1.2 kB     00:00     
base                             | 3.7 kB     00:00     
extras                           | 3.5 kB     00:00     
rbel6                            | 1.9 kB     00:00     
updates                          | 3.5 kB     00:00     
repo id            repo                                              status
Webmin             Webmin distribution Neutral                       174+1
base               CentOS-6 - Base                                   6,293+1
epel               Extra Packages for Enterprise Linux 6 - x86_64    7,345
extras             CentOS-6 - Extras                                  4
rbel6              RBEL 6 Repo                                       183
updates            CentOS-6 - Updates                                921+6
repolist: 14,920

显示哪些存储库支持您的要求包;

# yum provides git
Loaded plugins: fastestmirror,security
Loading mirror speeds from cached hostfile
 * base: mirrors.usc.edu
 * epel: epel.mirror.freedomvoice.com
 * extras: mirrors.usc.edu
 * updates: mirrors.usc.edu
git-1.7.1-2.el6_0.1.x86_64 : Fast Version Control System
Repo        : base
Matched from:

git-1.7.1-2.el6_0.1.x86_64 : Fast Version Control System        
Repo        : installed 

Matched from:               
Other       : Provides-match: git

原文地址:https://www.jb51.cc/bash/385373.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐