Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was installing glibc v2.18 and suddenly the install (make install) halts with an error. Afterwards, any basic terminal commands (ls, sudo, etc.) and attempting to perform system operations (shutdown, restart, etc.) resulted in segmentation faults.

I performed a hard restart of my system, and upon attempting to boot Ubuntu, my machine displays the following:

[    2.297365] init[1]: segfault at 3cd ip 00000000000003cd sp 00007fffa0a7f468 error 14 in libc-2.15.so[7fecf93a4000+1b5000]
[    2.297640] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    2.297640] 
[    2.297707] Pid: 1, comm: init Not tainted 3.5.0-39-generic #60~precise1-Ubuntu
[    2.297766] Call Trace:
[    2.297814]  [<ffffffff8168500e>] panic+0xc1/0x1d7
[    2.297867]  [<ffffffff811198f0>] ? perf_adjust_period+0xb0/0xb0
[    2.297923]  [<ffffffff81057582>] find_new_reaper+0x132/0x140
[    2.297977]  [<ffffffff810589e5>] forget_original_parent+0x45/0x1a0
[    2.298033]  [<ffffffff81058b57>] exit_notify+0x17/0x110
[    2.298086]  [<ffffffff810593e5>] do_exit+0x1f5/0x480
[    2.298138]  [<ffffffff81089814>] do_group_exit+0x44/0xa0
[    2.298192]  [<ffffffff810698cb>] get_signal_to_deliver+0x22b/0x440
[    2.298249]  [<ffffffff810147e9>] do_signal+0x29/0x130
[    2.298301]  [<ffffffff81685185>] ? printk+0x61/0x63
[    2.298353]  [<ffffffff81144966>] ? vm_mmap_pgoff+0x96/0xb0
[    2.298407]  [<ffffffff81155c63>] ? sys_mmap_pgoff+0x103/0x1f0
[    2.298462]  [<ffffffff810149a0>] do_notify_resume+0x90/0xd0
[    2.298516]  [<ffffffff8169e32c>] retint_signal+0x48/0x8c

I am unsure how to resolve the kernel panic and successfully boot Ubuntu.

If I can provide any further information, please do not hesitate to ask. Thank you in advance for any assistance.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

glibc is a crucial part of Ubuntu, so unless you really need a different version it is better to let it stay.

Regarding your problem, just re-installing libc6 should fix your issue. As you cannot use that system, you can try to recover it using a live cd.

After booting from a live cd/usb, mount your root partition (you can use Nautilus of the mount command to do that).

Then you should grab a copy of libc6 .deb. You can get it in http://packages.ubuntu.com/dist/libc6, where dist is your Ubuntu version (Precise, Quantal, Raring, etc). Double check you download the version that matches your architecture.

After that just extract that .deb to your root partition. This is not equal to use apt-get install, but as you cannot use any command on that system...

Supposing your root partition is mounted in /mnt, you can extract the .deb using

$ sudo dpkg -x /path/to/libc6*.deb /mnt

If everything went well, you can unmount your root partition and reboot to check if your problem is solved.

share|improve this answer
    
Worked like a charm. Thank you for your help. –  Alex Brooks Aug 21 '13 at 21:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.