LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2004, 08:29 AM   #1
SiLiZiUMM
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
Glibc upgrade gone bad


Hi all,

This is the first time Swaret failed on me, but on the worst package ever: glibc. Swaret crashed while intalling it, dunno why. Well, now the system is still up but most commands don't work since it can't find libc.so.6 (ie can't cp, mount, installpkg, etc.).

So which way should repair this ? Can I repair with the slack 10 CD ? Should I use Slax or Knoppix instead ? I won't reboot the system till I find a solution...

Word of the day: help Thank you...
 
Old 09-07-2004, 08:33 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You will need to reboot from a rescue disk to fix this one, and then reinstall libc.so.6. The easiest way to do this is to copy the file, but you can do it with RPMs directly using relocation if you like.

Then run /sbin/ldconfig (under chroot if necessary).

Without libc.so.6, you'll only be able to run staticaly-linked binaries. Some systems have all the startup stuff statically linked so you can still boot but I don't know about Slakware of Knoppix particularly.
 
Old 09-07-2004, 08:36 AM   #3
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
Slackware is a great distro (I run it myself on all my desktops and servers!). Though, you should never upgrade that kind of packages through automated systems! Either download a binary on www.slackware.com or yet even better, compile the source yourself (glibc is a little hard if youre new to linux.)

How to fix it;
There are multiple ways to fix this, but i believe the easiest one is this one:
1. Download the latest glibc package at www.slackware.com
2. Insert the Slackware CD1 disk and boot up.
3. After logging in as root mount the disk with your os on (depends on the system, you can get information about the partitions by loading cfdisk
4. copy the glibc package you just downloaded to the directory you mounted your os.
5. unpack it (tar zxvf <package>.tar.gz

Now eject the Slackware CD1 disk, and reboot. It should work. If it doesnt, or if you need some more help, ill be glad to help
 
Old 09-07-2004, 08:37 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
I would try :

1. boot with the 2nd CD of slackware installation
2. once the rescue system run, mount the root slackware partition in hd
(say it's /dev/hda1)
mount /dev/hda1 /mnt/hd
3. Reinstall glibc package from /var/swaret (say it is glibc-2.3.2-i486-6.tgz)
ROOT=/mnt/hd removepkg glibc-2.3.2-i486-6.tgz
installpkg -reinstall -root /mnt/hd /mnt/hd/var/swaret/glibc-2.3.2-i486-6.tgz

normally that should run fine

[edit] As I type too slowly I did not notice Olms did post a suggestion, anyway you end with 2 solutions now

Last edited by Cedrik; 09-07-2004 at 08:39 AM.
 
Old 09-07-2004, 08:38 AM   #5
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
cedrik: just installing the binary is a lot easier though
 
Old 09-07-2004, 08:42 AM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Not sure, that depends on your personality
 
Old 09-07-2004, 08:47 AM   #7
omes
Member
 
Registered: Jan 2003
Distribution: debian, FreeBSD
Posts: 120

Rep: Reputation: 15
Well, again its not clever to let swaret handle things like that (glibc, kernel, so on) because if anything failes, you dont know where it failed and why.. Binaries are the easiest way to install something if youre new, source is the best if you know how to do it imho..
 
Old 09-07-2004, 08:50 AM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
If you don't use the package tools, you need to have a slightly good knowledge of root slackware system structure in case of things go wrong when untaring the package (and do not think that will never happen).

Why do not let the slackware tools to do the job ?

Last edited by Cedrik; 09-07-2004 at 08:52 AM.
 
Old 09-07-2004, 09:22 AM   #9
SiLiZiUMM
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Ok thanks for the quick replies, that worked great.

What I did is boot on CD1 of SLK10 and mounted my / and /usr in /mnt/hd, then mounted the CDROM to /mnt/cdrom and copied the glibc packages to /mnt/hd. Untarred them, and reboot. So nice.

Thank you
 
Old 09-28-2004, 05:25 PM   #10
hsrthe4th
LQ Newbie
 
Registered: Sep 2004
Location: Georgia, USA
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
Unhappy Struggling

I too have decided to hose my system.
I have tried both OmeS' and Cedrik's ideas with no luck.
Is there an implied step I may have missed after reinstalling the package.
I have even used Slack 10 CD1 and reinstalled all of Dir A and L to no avail.
I am getting " relocation error /lib/libdl.so.2 _rtld_global_ro version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference" on bootup and if I try chroot with the rescue disk


I am to the point where I will have to reformat and reinstall unless someone can help.

Please won't you help?
 
Old 09-28-2004, 05:36 PM   #11
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Your version of libdl.so.2 is incompatible with your version of ld-linux.so.2.

In order to fix this, you will need to boot on a rescue disk (one that provides its own root filesystem; a LiveCD is usually a good choice) and then reinstall a set of library files that you know work well together. If in doubt, reinstall the packages you've changed using your original install disk, which should at least get you a working system.

The important thing to do here is not to panic. Reinstalling will take you back to square one but you won't necessarily learn anything by doing so. This problem can be fixed. You know what the problem is; these library files don't like each other. Your filesystem is fine but you need some sort of operating system in order to overwrite the library files with some that work. This is where the rescue disk comes in.

Last edited by rjlee; 09-28-2004 at 05:42 PM.
 
Old 09-28-2004, 05:57 PM   #12
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
hsrthe4th, when you chroot, you'll be using your system, that means using the broken files.
Mount your disk to /mnt
And use, installpkg -root /mnt packagename
 
Old 09-28-2004, 10:01 PM   #13
hsrthe4th
LQ Newbie
 
Registered: Sep 2004
Location: Georgia, USA
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
ok i have gotten glibc-2.3.3-i486-1 to successfully install by installing it after installing :
glibc-i18n-2.3.3-noarch-1
glibc-profile-2.3.3-i486-1
glibc-solibs-2.3.3-i486-1
glibc-zoneinfo-2.3.3-noarch-1

and i'm still getting the relocation error.
Is there a package i am missing?
 
Old 09-28-2004, 10:18 PM   #14
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
See if you have a symlink called /lib/libc.so.6 and points to /lib/libc-2.3.3.so
 
Old 09-29-2004, 06:28 AM   #15
hsrthe4th
LQ Newbie
 
Registered: Sep 2004
Location: Georgia, USA
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
gbonvehi yes i do have that.
What should ld-linux.so.2 be linked to mine is linked to libfoo.so.0.0.0

UPDATE --------
For some reason ldconfig was relinking ld-linux.so.2 to libfoo.so.0.0.0
My solution was to relink it to ld-2.3.3.so manually and remove libfoo.so.0.0.0


Last edited by hsrthe4th; 09-29-2004 at 10:21 PM.
 
  


Reply



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
newb question on GNU glibc-2.3.1 upgrade to GNU glibc-2.3.2 clindy528 Slackware 1 11-10-2005 06:49 AM
GLIBC Upgrade steveoelliott Slackware 10 06-22-2005 01:32 AM
upgrade glibc-2.2.4 to glibc-2.3.2 on redhat 7.2 Shuja Red Hat 0 07-28-2004 06:10 AM
Intel Fortran Compiler - glibc dependencies bad damien Linux - Software 1 12-02-2003 11:19 PM
glibc upgrade gone (slightly) bad weppnesp Linux - Software 1 07-24-2003 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:05 PM.

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
Open Source Consulting | Domain Registration