Centos7 rpm glibc Centos 7

Centos7 rpm glibc Centos 7,centos7,glibc,Centos7,Glibc,如何在CentOS 7上安装这两个组件?他们都互相依赖。机器未连接到internet [efe@localhost Desktop]$ sudo rpm -i glibc-2.17-317.el7.x86_64.rpm warning: glibc-2.17-317.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY error: Failed dependencies: glibc-common

如何在CentOS 7上安装这两个组件?他们都互相依赖。机器未连接到internet

[efe@localhost Desktop]$ sudo rpm -i glibc-2.17-317.el7.x86_64.rpm 
warning: glibc-2.17-317.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
    glibc-common = 2.17-317.el7 is needed by glibc-2.17-317.el7.x86_64



[efe@localhost Desktop]$ sudo rpm -i glibc-common-2.17-317.el7.x86_64.rpm 
warning: glibc-common-2.17-317.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
    glibc = 2.17-317.el7 is needed by glibc-common-2.17-317.el7.x86_64
EDIT1:我已经在x86_64上安装了2.17-292 for everything,它是成功的。然而,对于i686(是的,不幸的是我需要两者),我尝试将所有包合并到一个命令中,出现了许多其他依赖项。我尝试过像安装x86_64一样安装2.17-292,这是带有错误的最终输出。在这最后一个命令之前,依赖性错误总是出现,这是第一个不同的错误

[efe@localhost packages]$ sudo rpm -i glibc-2.17-292.el7.i686.rpm glibc-common-2.17-292.el7.i686.rpm glibc-headers-2.17-292.el7.i686.rpm glibc-devel-2.17-292.el7.i686.rpm nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm nspr-4.25.0-2.el7_9.i686.rpm nss-util-3.53.1-1.el7_9.i686.rpm libselinux-2.5-15.el7.i686.rpm libsepol-2.5-10.el7.i686.rpm pcre-8.32-17.el7.i686.rpm libgcc-4.8.5-44.el7.i686.rpm libstdc++-4.8.5-44.el7.i686.rpm 
warning: glibc-2.17-292.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
    file /usr/bin/ldd from install of glibc-common-2.17-292.el7.i686 conflicts with file from package glibc-common-2.17-292.el7.x86_64
    file /usr/lib/locale/locale-archive.tmpl from install of glibc-common-2.17-292.el7.i686 conflicts with file from package glibc-common-2.17-292.el7.x86_64
    file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyc from install of libstdc++-4.8.5-44.el7.i686 conflicts with file from package libstdc++-4.8.5-36.el7.x86_64
    file /usr/share/gcc-4.8.2/python/libstdcxx/v6/printers.pyo from install of libstdc++-4.8.5-44.el7.i686 conflicts with file from package libstdc++-4.8.5-36.el7.x86_64
EDIT2:我已经按照Florian Weimer的建议输入了一个命令

[efe@localhost i686]$ sudo yum update *.rpm
Loaded plugins: fastestmirror, langpacks
Examining glibc-2.17-292.el7.i686.rpm: glibc-2.17-292.el7.i686
Package glibc.i686 not installed, cannot update it. Run yum install to install it instead.
Examining glibc-common-2.17-292.el7.i686.rpm: glibc-common-2.17-292.el7.i686
Package glibc-common.i686 not installed, cannot update it. Run yum install to install it instead.
Examining glibc-devel-2.17-292.el7.i686.rpm: glibc-devel-2.17-292.el7.i686
Package glibc-devel.i686 not installed, cannot update it. Run yum install to install it instead.
Examining glibc-headers-2.17-292.el7.i686.rpm: glibc-headers-2.17-292.el7.i686
Package glibc-headers.i686 not installed, cannot update it. Run yum install to install it instead.
Examining libgcc-4.8.5-44.el7.i686.rpm: libgcc-4.8.5-44.el7.i686
Marking libgcc-4.8.5-44.el7.i686.rpm as an update to libgcc-4.8.5-36.el7.x86_64
Examining libselinux-2.5-15.el7.i686.rpm: libselinux-2.5-15.el7.i686
Marking libselinux-2.5-15.el7.i686.rpm as an update to libselinux-2.5-14.1.el7.x86_64
Examining libsepol-2.5-10.el7.i686.rpm: libsepol-2.5-10.el7.i686
Package libsepol.i686 not installed, cannot update it. Run yum install to install it instead.
Examining libstdc++-4.8.5-44.el7.i686.rpm: libstdc++-4.8.5-44.el7.i686
Marking libstdc++-4.8.5-44.el7.i686.rpm as an update to libstdc++-4.8.5-36.el7.x86_64
Examining nspr-4.25.0-2.el7_9.i686.rpm: nspr-4.25.0-2.el7_9.i686
Marking nspr-4.25.0-2.el7_9.i686.rpm as an update to nspr-4.19.0-1.el7_5.x86_64
Examining nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm: nss-softokn-freebl-3.44.0-8.el7_7.i686
Marking nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm as an update to nss-softokn-freebl-3.36.0-5.el7_5.x86_64
Examining nss-util-3.53.1-1.el7_9.i686.rpm: nss-util-3.53.1-1.el7_9.i686
Marking nss-util-3.53.1-1.el7_9.i686.rpm as an update to nss-util-3.36.0-1.el7_5.x86_64
Examining pcre-8.32-17.el7.i686.rpm: pcre-8.32-17.el7.i686
Package pcre.i686 not installed, cannot update it. Run yum install to install it instead.
Resolving Dependencies
--> Running transaction check
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
--> Processing Dependency: libgcc(x86-64) for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64

[efe@localhosti686]$sudo yum update*.rpm
加载的插件:FastTestMirror、langpacks
检查glibc-2.17-292.el7.i686.rpm:glibc-2.17-292.el7.i686
程序包glibc.i686未安装,无法更新。运行yum install来安装它。
检查glibc-common-2.17-292.el7.i686.rpm:glibc-common-2.17-292.el7.i686
程序包glibc-common.i686未安装,无法更新。运行yum install来安装它。
检查glibc-devel-2.17-292.el7.i686.rpm:glibc-devel-2.17-292.el7.i686
程序包glibc-devel.i686未安装,无法更新。运行yum install来安装它。
检查glibc-headers-2.17-292.el7.i686.rpm:glibc-headers-2.17-292.el7.i686
程序包glibc-headers.i686未安装,无法更新。运行yum install来安装它。
检查libgcc-4.8.5-44.el7.i686.rpm:libgcc-4.8.5-44.el7.i686
将libgcc-4.8.5-44.el7.i686.rpm标记为libgcc-4.8.5-36.el7.x86_64的更新
检查libselinux-2.5-15.el7.i686.rpm:libselinux-2.5-15.el7.i686
将libselinux-2.5-15.el7.i686.rpm标记为libselinux-2.5-14.1.el7.x86\u 64的更新
检查libsepol-2.5-10.el7.i686.rpm:libsepol-2.5-10.el7.i686
未安装程序包libsepol.i686,无法对其进行更新。运行yum install来安装它。
检查libstdc++-4.8.5-44.el7.i686.rpm:libstdc++-4.8.5-44.el7.i686
将libstdc++-4.8.5-44.el7.i686.rpm标记为libstdc++-4.8.5-36.el7.x86_64的更新
检查nspr-4.25.0-2.el7_9.i686.rpm:nspr-4.25.0-2.el7_9.i686
将nspr-4.25.0-2.el7_9.i686.rpm标记为nspr-4.19.0-1.el7_5.x86_64的更新
检查nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm:nss-softokn-freebl-3.44.0-8.el7_7.i686
将nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm标记为nss-softokn-freebl-3.36.0-5.el7_5.x86_64的更新
检查nss-util-3.53.1-1.el7_9.i686.rpm:nss-util-3.53.1-1.el7_9.i686
将nss-util-3.53.1-1.el7_9.i686.rpm标记为nss-util-3.36.0-1.el7_5.x86_64的更新
检查pcre-8.32-17.el7.i686.rpm:pcre-8.32-17.el7.i686
包pcre.i686未安装,无法更新。运行yum install来安装它。
解决依赖关系
-->运行事务检查
--->将更新程序包libgcc.x86_64 0:4.8.5-36.el7
-->包的处理依赖项:libgcc(x86-64):redhat-lsb-core-4.1-27.el7.centos.1.x86_64
从缓存的主机文件加载镜像速度
无法检索镜像列表http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock 错误是
14:curl#6-“无法解析主机:mirrorlist.centos.org;未知错误”
其中一个配置的存储库失败(未知),
而且yum没有足够的缓存数据继续。在这一点上,唯一的
百胜可以做的安全事情就是失败。有几种方法可以“修复”此问题:
1.联系上游的存储库,让他们解决问题。
2.为存储库重新配置baseurl/etc,以指向工作
上游如果您使用的是较新的
存储库(以及
上一个发行版的包仍然有效)。
3.在暂时禁用存储库的情况下运行该命令
yum--disablerepo=。。。
4.永久禁用存储库,因此默认情况下,yum不会使用它。好吃
然后将忽略存储库,直到您永久启用它
再次或使用--enablerepo临时使用:
yum配置管理器--禁用
或
订阅管理器repos--禁用=
5.如果失败的存储库不可用,请将其配置为跳过。
请注意,yum将尝试联系repo。当它运行大多数命令时,
因此,每次都必须尝试失败(因此,百胜将是非常重要的)
较慢)。如果这是一个非常暂时的问题,这通常是一个很好的解决方案
妥协:
yum config manager--save--setopt=.skip_if_unavailable=true
找不到repo:base/7/x86\u 64的有效baseurl

您可以使用如下命令同时升级所有软件包:

sudo rpm -U glibc-2.17-317.el7.x86_64.rpm glibc-common-2.17-317.el7.x86_64.rpm
或者您可以使用
yum update
,如下所示:

sudo yum update --disablerepo="*" *.rpm

这样做的好处是,升级不会自动安装未安装的软件包(除非依赖项需要)
--disablerepo=“*”
确保
yum update
不会尝试下载任何内容。

jlehtone在
forums.centos.org
中解决了我的问题。我只是需要写

sudo rpm -i glibc-2.17-292.el7.i686.rpm nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm nspr-4.25.0-2.el7_9.i686.rpm nss-util-3.53.1-1.el7_9.i686.rpm 

请参阅Edit1。由于我未连接到internet,
sudo-yum-update*.rpm
是否有效?另外,我已经解决了x86_64的问题,这次出现了关于i686的问题。谢谢。
yum update
如果包集已完成,则不需要Internet连接。通过添加所有必需的
i686
包,
i686
案例的处理方式基本相同。但是,当我输入命令
sudo yum-q list glibc
时,我只能看到
x86_64
,而不能看到
i686
。我将立即尝试
yum update
,并编辑此评论。我无法编辑我的评论。你能看看edit2吗?我不明白发生了什么事。