【问题标题】:Trying to update OpenSSL on my server... GLIBC errors尝试在我的服务器上更新 OpenSSL... GLIBC 错误
【发布时间】:2014-04-15 05:21:50
【问题描述】:

所以,这开始是因为我试图在我的 Amazon EC2 服务器上更新 OpenSSL。但是,当我尝试运行 sudo yum update openssl 时,我得到:
Error: Package: 1:openssl-1.0.1e-37.66.amzn1.x86_64 (amzn-updates) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: 1:openssl-1.0.1e-37.66.amzn1.x86_64 (amzn-updates) Requires: libc.so.6(GLIBC_2.17)(64bit) Error: Package: 1:openssl-1.0.1e-37.66.amzn1.x86_64 (amzn-updates) Requires: libc.so.6(GLIBC_2.15)(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

我已经尝试了两个建议命令,但都没有运气:
sudo yum update openssl --skip-broken Packages skipped because of dependency problems: 1:openssl-1.0.1e-37.66.amzn1.x86_64 from amzn-updates

sudo rpm -Va --nofiles --nodigest 没有区别

而且...如果我尝试:
sudo yum install glibc Loaded plugins: fastestmirror, priorities, security, update-motd, upgrade-helper Loading mirror speeds from cached hostfile * amzn-main: packages.us.amazonaws.com * amzn-updates: packages.us.amazonaws.com * epel: mirrors.kernel.org amzn-main | 2.1 kB 00:00 amzn-updates | 2.3 kB 00:00 810 packages excluded due to repository priority protections Setting up Install Process Nothing to do

我还有哪些其他选择?

同时可以看到:
[taylor@server~]$ /lib/libc.so.6 GNU C Library stable release version 2.12, by Roland McGrath et al. Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.6.2 20111027 (Red Hat 4.6.2-2). Compiled on a Linux 3.2.5 system on 2013-02-27. Available extensions: The C stubs add-on version 2.1.2. crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B RT using linux kernel aio libc ABIs: UNIQUE IFUNC For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>.

【问题讨论】:

  • 这是最近发生的事吗?还是很老?
  • 简单来说,你的 openssl 和 glibc 已经被水洗了。如果不是太费力,那就创建一个新的实例来代替。
  • @Rico 一岁左右。
  • @slayedbylucifer 你能解释一下他们是如何被冲洗的吗?他们似乎都工作得很好,只是不能很好地协同工作。

标签: linux amazon-ec2 yum


【解决方案1】:

看起来可能是几件事。也许您使用 epel repo 安装的某些东西需要特定版本的 glibc,因此导致您无法安装最新版本。或者,也许您的 repo 元数据已过期。有几件事要尝试。

您可以使用以下命令清除 repo 元数据:

sudo yum clean all 

然后

sudo yum update openssl

您也可以尝试使用

暂时禁用 epel repo
sudo yum --disablerepo epel update openssl

如果您不想将 glibc 作为更新的一部分进行更新,您也可以使用以下命令将 openssl 升级到针对 glibc 2.12 编译的版本:

sudo yum --releasever=2013.09 update openssl

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-22
    • 2020-10-06
    • 2015-12-02
    • 1970-01-01
    • 2018-04-22
    相关资源
    最近更新 更多