Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running Arch Linux. Today i have tried to update my system, there was an error when trying to update "glibc" package. I don't remember correctly what was the error message (something about "/usr/lib/modules" moved to "/lib/modules"). Now, i know that "glibc" is VERY important for the system, but i just wanted to try something crazy - install new "glibc" after i delete the old one with "sudo pacman -Rnn glibc". It turned out to be VERY bad idea, after removing old "glibc" my system can't recognize "sudo", "dir" and other commands so i can't install new "glibc". Can you suggest me some solution? How to get out of this situation? :)

share|improve this question
    
In the future, please PLEASE read the archlinux news before updating. archlinux.org/news –  Rob Jul 24 '12 at 18:39

1 Answer 1

up vote 2 down vote accepted

glibc (or some other C library) is required for virtually everything in a Linux system. Removing it is a Really Bad Idea, as you've discovered the hard way.

The easiest way to recover from this is to boot from the Arch Linux CD and reinstall glibc to your system. One possible way to do this is provided on the Arch Wiki.

share|improve this answer
    
How could i do it? Can you give me some tutorial please? –  bope86 Jul 14 '12 at 23:32
    
I hate to say this, but if you don't know at least the basics of using a Linux system, then you probably shouldn't be running Arch. If you really want to continue, you should read the Official Arch Linux Installation Guide and When LIBC Is Broken (which I just found). –  Michael Hampton Jul 15 '12 at 19:14
    
I just came here to accept your answer and then saw your comment. Yes, yes i followed wiki page, re installed glibc (mounted live cd, then mounted hdd with broken Arch, install glibc using "pacman -S glibc --root /mnt/brokenRoot") and it worked :) I had no idea how to do it cause i never HAD to do it so i never had any interest in methods of recovering from things like this ;) I tend to learn things the hard way, BUT when i learn something that way, it lasts forever :) Otherwise, it's just "too much information for "just in case"" –  bope86 Jul 15 '12 at 21:49

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.