LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2004, 12:47 AM   #1
ranjeet_kapur
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
deleted libc.so.6


I am running debian, kernel 2.4.20. I have 2 versions of the libc library and libc.so.6 was linked to one of them. In attempt to change the link I did "rm libc.so.6", to be followed by "ln -s ....". But after the rm, most of the commands I type complain about the missing libc.so.6. About the only things I can do are "cd" and "pwd". Tried doing a dpkg -i <libc*.deb> in a dir. where I have a libc package, but that complained about the missing libc as well. How can I recover ??? Any help would be greatly appreciated.

Ranjeet
 
Old 03-12-2004, 12:50 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
The CD should have a rescue mode, boot with it, mount your root partition and fix it up.
 
Old 03-12-2004, 04:07 PM   #3
ranjeet_kapur
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the tip ....... Although the booting in the rescue more failed, I remembered that I could esape to an ash shell during an install. So I started a new install, escaped to the ash shell, mounted root and relinked libc.so.6 ... and now I am up and running
 
Old 03-26-2004, 10:25 AM   #4
gwung
LQ Newbie
 
Registered: Mar 2004
Location: Chicago
Posts: 2

Rep: Reputation: 0
action required?

Hi,
I did exactly what you did; I removed libc.so.6 and tried to relink it to a newer version and failed .

what exactly did you do to repair the lib?

And I was thinking if I can just insert a knoppix live CD, use the knoppix in commnad and relink it from there? I dont want to shutdown the server. Any suggestions?

Many many thanks in advance!

Last edited by gwung; 03-26-2004 at 10:30 AM.
 
Old 03-26-2004, 01:16 PM   #5
Brane Ded
Member
 
Registered: Nov 2003
Location: over there
Distribution: Debian Testing
Posts: 191

Rep: Reputation: 30
Quote:
And I was thinking if I can just insert a knoppix live CD, use the knoppix in commnad and relink it from there? I dont want to shutdown the server. Any suggestions?
A Knoppix CD would work fine for that. It will only take about five minutes to fix, so the server wouldn't be down long.
 
Old 03-26-2004, 01:49 PM   #6
gwung
LQ Newbie
 
Registered: Mar 2004
Location: Chicago
Posts: 2

Rep: Reputation: 0
found that I can use ldconfig to do some restore, however, i dont know what to do with ldconfig, help?

tried:
1.) prompt#ldconfig
2.) prompt#ldconfig -n /lib

nothing happened.
 
Old 05-22-2004, 11:03 AM   #7
adie
LQ Newbie
 
Registered: May 2004
Location: uk
Distribution: deb
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by gwung
found that I can use ldconfig to do some restore, however, i dont know what to do with ldconfig, help?

tried:
1.) prompt#ldconfig
2.) prompt#ldconfig -n /lib

nothing happened.
# /sbin/ldconfig -l /lib/libc-2.2.5.so

tab complete is your friend if you're using bash.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kmail crashes when deleted mail is deleted dufferin Slackware 0 03-21-2005 04:23 PM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 05:53 PM
libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.2) needed for Linux 7.3.1 vivek_thampy Linux - Software 1 08-09-2004 05:12 PM
I deleted libc, n00b needs help LinuxBlackBox Linux - General 9 11-07-2003 10:04 PM
libc.so verse libc.so.5 markstevens Linux - Software 4 06-19-2003 12:41 PM


All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration