我正在使用 RHEL 7.2,我想安装 LibXp.so.6 和 LibXmu.so.6,但 glibc-common-2.17-105.el7.x86_64.rpm 和 glibc-2.17-105.el7 有问题。 i686.rpm 因为他们需要彼此。
[root@hostname ~]# rpm -i glibc-2.17-105.el7.i686.rpm
warning: glibc-2.17-105.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
glibc-common = 2.17-105.el7 is needed by glibc-2.17-105.el7.i686
libfreebl3.so is needed by glibc-2.17-105.el7.i686
libfreebl3.so(NSSRAWHASH_3.12.3) is needed by glibc-2.17-105.el7.i686
[root@hostname ~]# rpm -i glibc-common-2.17-105.el7.x86_64.rpm
warning: glibc-common-2.17-105.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
glibc = 2.17-105.el7 is needed by glibc-common-2.17-105.el7.x86_64
我应该如何安装这个?我没有连接到互联网,因此无法使用 yum,只能使用 rpm。
更重要的是,我认为这些库已安装:
[root@hostname ~]# rpm -qa | grep glibc
glibc-common-2.17-105.0.1.el7.x86_64
glibc-2.17-105.0.1.el7.x86_64
答案1
如果软件包是相互依赖的,您需要将它们安装在一起,如下所示:
# rpm -i glibc-2.17-105.el7.i686.rpm glibc-common-2.17-105.el7.x86_64.rpm