Sla*_*yer 29 security ubuntu selinux linux-kernel panic
我试图更新我们的Ubuntu服务器中的libc,但它失败了,现在当我重新启动服务器时,我收到一条错误消息:
内核恐慌 - 没有同步 - 试图杀死init!
它只是挂起.
这个问题的解决方案是什么?服务器由10个人使用,所以我不想重新安装擦除他们的数据.
小智 16
如果完整的消息是:
kernel panic - not syncing: Attempted to kill inint !
PId: 1, comm: init not tainted 2.6.32.-279-5.2.e16.x86_64 #1
Run Code Online (Sandbox Code Playgroud)
然后你应该禁用selinux,之后你重新启动了系统.
更容易的是使用实时操作系统并重新启用它
vim /etc/selinux/config
...
SELINUX=enforcing
...
Run Code Online (Sandbox Code Playgroud)
第二个选择是通过添加selinux = 0来禁用内核参数中的selinux
vim /boot/grub/grub.conf
...
kernel /boot/vmlinuz-2.4.20-selinux-2003040709 ro root=/dev/hda1 nousb selinux=0
...
Run Code Online (Sandbox Code Playgroud)
使用 cd 的救援模式并挂载文件系统。尝试检查是否有任何二进制文件或文件夹被删除。如果删除,您将必须手动安装 rpm 才能恢复这些文件。