glibc损坏,导致系统崩溃,求修复方法

yankai0403
glibc损坏,导致系统崩溃,求修复方法

大哥们啦,救命!
    我的glibc损坏,启动时系统提示kernel panic:no init found,try passing init= options to kernel.
    单用户无法启动,使用光盘,进入rescue mode,无法用chroot /mnt/sysimage重定向主目录,可是提示错误:cannot execute /bin/sh: no such file or directory.进入光盘目录,也不能安装glibc,错误提示如下:
error:failed dependencies:
      basesystem is needed by glibc-2.3.2-11.9
      /bin/sh is needed by glibc-devel-2.3.2-11.9
      /sbin/install-info is needed by glibc-devel-2.3.2-11.9
      /bin/sh is needed by glibc-kernheaders-2.4-8.10
      fileutils is needed by glibc-kernheaders-2.4-8.10
      initscripts >= 5.83 is needed by glibc-kernheaders-2.4-8.10
    并且尝试用光盘修复也不能正常进行,郁闷的要死~

提问:1.我的系统还有救不?如果可以,怎么救?
   2.通常情况下,救援模式能不能装rpm包?

yankai0403
顶一个,别沉了..:m01:

anhongkui
需要解决依赖关系

要什么包就装什么包呗

yankai0403
回复 #3 anhongkui 的帖子

basesystem is needed by glibc-2.3.2-11.9
可是现在我连完整的最基本的系统都没了....
而且主目录没法定义,/bin/sh系统都无法找到.
平时的是/bin/sh,可是在救援模式下,这个目录在/mnt/sysimage/bin/sh...
5555~~~~:em16: :em16: :em16:

jerrywjl
你用光盘的rescue模式引导系统进入,然后装所要的包。

simonlm
glibc崩了只有重装系统了。我们同事以前就搞过这样的飞机了。

jiecho
光盘进救援模式,然后安装glibc的rpm包,指定root
rpm -ivh glibc* --root=/mnt/sysimage