百胜在更新库库尔时坏了

  • 本文关键字:坏了 更新 centos yum
  • 更新时间 :
  • 英文 :


在我的 Centos 6 服务器上,我使用 city-fan.repo 更新了 curl,但在安装后我遇到了 yum 问题......我发现(搜索数小时后)这是由于libssh2旧版本,所以我删除了它并再次下载以重新编译它,但是编译它没有安装GCC,当我尝试./配置libssh2-1.6.1-20150617时,我有这个错误:

configure: error: no acceptable C compiler found in $PATH

,所以我从 Centos 存储库下载了这些软件包,因为我无法使用 yum 来安装 gcc:

cloog-ppl-0.15.7-1.2.el6.x86_64.rpm                               glibc-common-2.12-1.149.el6.x86_64.rpm   kernel-headers-2.6.32-504.el6.x86_64.rpm
compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm  gcc-4.4.7-11.el6.x86_64.rpm      glibc-devel-2.12-1.149.el6.x86_64.rpm    mpfr-2.4.1-6.el6.x86_64.rpm
cpp-4.4.7-11.el6.x86_64.rpm                  glibc-2.12-1.149.el6.x86_64.rpm  glibc-headers-2.12-1.149.el6.x86_64.rpm  ppl-0.10.2-11.el6.x86_64.rpm

当我尝试安装这些时,我得到这个:

 rpm -ivh *.rpm
Preparing...                ########################################### [100%]
        package glibc-common-2.12-1.149.el6_6.5.x86_64 (which is newer than glibc-common-2.12-1.149.el6.x86_64) is already installed
        package glibc-2.12-1.149.el6_6.5.x86_64 (which is newer than glibc-2.12-1.149.el6.x86_64) is already installed
        file /usr/sbin/build-locale-archive from install of glibc-common-2.12-1.149.el6.x86_64 conflicts with file from package glibc-common-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/tzdata-update from install of glibc-common-2.12-1.149.el6.x86_64 conflicts with file from package glibc-common-2.12-1.149.el6_6.5.x86_64
        file /lib64/ld-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /lib64/libc-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /lib64/libresolv-2.12.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /sbin/ldconfig from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /sbin/sln from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1364.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1371.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1388.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1390.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM1399.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM933.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM935.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM937.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/lib64/gconv/IBM939.so from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/glibc_post_upgrade.x86_64 from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/iconvconfig from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64
        file /usr/sbin/iconvconfig.x86_64 from install of glibc-2.12-1.149.el6.x86_64 conflicts with file from package glibc-2.12-1.149.el6_6.5.x86_64

如果我运行任何 yum 命令,它会向我显示此错误:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
   libssh2.so.1: cannot open shared object file: No such file or directory
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

我对此非常陌生...有什么帮助吗?谢谢

你主要冲洗你的系统。

您下载的 rpm 软件包比您已经安装的软件包旧(这就是该错误消息告诉您的)。

获取您删除的 libssh2 和 curl 软件包的 rpm 软件包并修复 yum。

然后找到一种更好的方法来做你最初想做的任何事情。任何需要你以官方软件包无法处理的方式升级操作系统的核心组件(如libcurl)的东西都是设计破坏的。

您是否尝试过执行以下操作:

yum provides libssh2.so.1

然后安装其中一个提供包

例如 yum install libssh2

最新更新