LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Suicidal tendencies (or, how do I restore glibc?) (https://www.linuxquestions.org/questions/slackware-14/suicidal-tendencies-or-how-do-i-restore-glibc-255487/)

dhave 11-16-2004 06:19 AM

Suicidal tendencies (or, how do I restore glibc?)
 
To try fix a persistent problem, I just did "removepkg glibc", and, as a result, I can't get back into my Slackware system. (I was going to reinstall glibc right away, but it wasn't possible since I crippled my system.)

Can I use the installation CD to just reinstall the glibc package(s)? Will this leave the rest of my stuff intact? Are there any special procedures I'll need to follow?

I really don't want to zap everything or otherwise do more damage than I already have.

Thanks for your help -- and for your patience.

(Boy, it sure is easy to think you know more than you do! No more tweaking, no more tweaking, no more tweaking ... bad, bad bad.)

PenguinPwrdBox 11-16-2004 06:29 AM

Boot from the Slackware CD.

At the boot> prompt, type in:

Code:

bare.i root=/dev/hd*
Where, in the above example, /dev/hd* is your root partition.

When you are booted, and logged in as root, do the follwing:

Code:

root@slackware#pkgtool
This brings up a GUI, similar to the one that you had at install. From your choices, "Install
packages from the current directory......", etc, choose "Choose Slackware installation scripts
to run again"


I believe this is part of package "G"

Good luck, dude.

perfect_circle 11-16-2004 06:29 AM

you can use install cd to reinstall glibc.

make sure u backup /etc/ld.so.conf, restore it after the install.
better use runlevel 3 to reboot after installing, and do ldconfig after rebooting.
I don't know how removepkg works.
If it uses a database like rpm does, you may have to fix the database again, since it might be corrupted

Cedrik 11-16-2004 06:31 AM

It arrived to me the same thing, be quiet ;)

I did solve this by just copying the /lib/libc* from the CD to the /lib dir of my root / mounted
from the install CD. After that I did upgrade glibc

dhave 11-16-2004 07:01 AM

To PenguinPwrdBox, perfect_circle and Cedrik:

I'm back in again. I have just transferred a large sum of money into your Swiss bank accounts. Thanks!

And thanks for not making me feel like a big idiot.

And, no, I'm sure I haven't learned my lesson. If Slackware is this easy to fix, well, I think I should just tweak away to my heart's content!

Let's see, what shall I break now ... ?


All times are GMT -5. The time now is 03:45 PM.