Translated message

A translation of this page exists in English.

如何在 rescue 模式中安装或重新安装一个软件包

Solution Verified - Updated -

Issue

  • 关键的 glibc 软件包被删除,我如何重新安装它?
  • glibc 库在系统中被意外删除,现在 无法登陆到系统
  • Red Hat Enterprise Linux 上运行任何命令时都会遇到 "/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory" 错误。
  • 当关键的软件包从系统中删除后,无法在 rescue 模式中使用 chroot
# /bin/mkdir rpm
-bash: /bin/mkdir: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content