我们有一个用于 Centos 6 的旧开发服务器,我想将 Openssl 更新到修改版本 1.0.2k(我们有一个 C8 服务器来替换它,但试图在此期间更新旧服务器)。
我已经从 SRPM 构建了 RPM,并尝试安装。示例
rpm -Uv openssl-libs-1.0.2k-21.el6.x86_64.rpm openssl-1.0.2k-21.el6.x86_64.rpm openssl-devel-1.0.2k-21.el6.x86_64.rpm
但是,它会出现错误:
error: Failed dependencies:
openssl-devel = 1.0.1e-58.el6_10 is needed by (installed) openssl-static-1.0.1e-58.el6_10.x86_64
但如果我去查看已安装的 Openssl-dev,我会得到
Installed Packages
Name : openssl-devel
Arch : x86_64
Version : 1.0.1e
Release : 58.el6_10
Size : 2.2 M
Repo : installed
From repo : updates
Available Packages
Name : openssl-devel
Arch : i686
Version : 1.0.1e
Release : 58.el6_10
Size : 1.2 M
Repo : updates
rpmquery openssl-devel
openssl-devel-1.0.1e-58.el6_10.x86_64
所以这似乎意味着我已经安装了正确的版本(以便解决它),但是我也注意到在“可用包”部分,它没有列出 x86_64 包(通常我希望它显示 i686 和 x86_64),并且想知道是否存在问题。
如果我查看 arch 输出,它会显示
x86_64
并且所有其他安装的软件包都是 x86_64
我的 yum.conf 和 /etc/yum.repos.d/CentOS-Base.repo 看起来都正确,没有任何修改。
rpm 查询显示
rpm -qpR openssl-libs-1.0.2k-21.el6.x86_64.rpm
/sbin/ldconfig
/sbin/ldconfig
ca-certificates >= 2008-5
config(openssl-libs) = 1:1.0.2k-21.el6
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libcom_err.so.2()(64bit)
libcrypto.so.10()(64bit)
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
libcrypto.so.10(libcrypto.so.10)(64bit)
libdl.so.2()(64bit)
libdl.so.2(GLIBC_2.2.5)(64bit)
libgssapi_krb5.so.2()(64bit)
libk5crypto.so.3()(64bit)
libk5crypto.so.3(k5crypto_3_MIT)(64bit)
libkrb5.so.3()(64bit)
libkrb5.so.3(krb5_3_MIT)(64bit)
libssl.so.10()(64bit)
libz.so.1()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
rpm -qpR openssl-1.0.2k-21.el6.x86_64.rpm
/bin/bash
/bin/sh
coreutils
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libcom_err.so.2()(64bit)
libcrypto.so.10()(64bit)
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
libcrypto.so.10(OPENSSL_1.0.2)(64bit)
libcrypto.so.10(libcrypto.so.10)(64bit)
libdl.so.2()(64bit)
libgssapi_krb5.so.2()(64bit)
libk5crypto.so.3()(64bit)
libkrb5.so.3()(64bit)
libssl.so.10()(64bit)
libssl.so.10(libssl.so.10)(64bit)
libz.so.1()(64bit)
make
openssl-libs(x86-64) = 1:1.0.2k-21.el6
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
知道为什么 rpm 升级会因缺少依赖项而失败吗?