LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-04-2007, 05:38 AM   #1
myt
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Rep: Reputation: 0
Exclamation glibc removed, now I can't do anything, extremely urgent


I'm using SuSE 10.1 and I was trying to upgrade glibc-2.5 to 2.7. So I went ahead and did "rpm -e --nodeps `rpm -qa | grep glibc-2.5`", which is probably a pretty bad idea. Now I can't execute anything. RPM won't work, ls won't work, find won't work. Any command I type would give me "bash: /usr/bin/XX: No such file or directory". However the binaries still exist when I open up konqueror to view them, I just can't run them. I need help on this ASAP since I do my work on this computer. Thanks for your time.
 
Old 11-04-2007, 05:51 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Removing glibc will pretty much render the machine completely useless. The only way you are going to be able to get it back up and running is to boot the machine to a Live CD and reinstall the package that way, since you won't be able to install it from the running system.

To that end, this should probably be moved to the SuSE forum, since the method to get you back up and running is going to be specific to that distribution.
 
Old 11-04-2007, 06:03 AM   #3
myt
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Exclamation glibc removed, now I can't do anything, extremely urgent

I was told that I could find more help here, so here goes...

Quote:
Originally Posted by myt View Post
I'm using SuSE 10.1 and I was trying to upgrade glibc-2.5 to 2.7. So I went ahead and did "rpm -e --nodeps `rpm -qa | grep glibc-2.5`", which is probably a pretty bad idea. Now I can't execute anything. RPM won't work, ls won't work, find won't work. Any command I type would give me "bash: /usr/bin/XX: No such file or directory". However the binaries still exist when I open up konqueror to view them, I just can't run them. I need help on this ASAP since I do my work on this computer. Thanks for your time.
Is there a way to reinstall glibc? I have the SuSE 10.1 DVD with me right now and am wondering if there is a way to fix this.
 
Old 11-04-2007, 07:18 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I can't answer the question on how to re-install glibc.

I can suggest that in future, it you want to upgrade an application, instead of removing one version, then installing the new version (with rpm -e and rpm -i), you should consider using rpm -U <packagename> (upgrade an existing installation), if the application will upgrade that way. Most will; a few may not.
 
Old 11-04-2007, 07:53 AM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:
rpm -e --nodeps `rpm -qa | grep glibc-2.5`
This is an extremely bad idea, lesson learned

You can try installing the glibc packages by using the static version of rpm if this is installed;

rpmi -ivh glibc-<the rest>

Use the locate command to find if this is available; locate rpmi
 
Old 11-04-2007, 08:04 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
/usr/lib/rpm/rpmi is usual location of the command mentioned in prior post.
 
Old 11-04-2007, 10:59 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I've moved this to the openSUSE/Novell forum where hopefully uou can find a detailed solution to your problem.
 
Old 11-04-2007, 11:28 AM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
The two threads have now been merged
 
Old 11-04-2007, 11:29 AM   #9
myt
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Exclamation

Quote:
Originally Posted by Lenard View Post
This is an extremely bad idea, lesson learned

You can try installing the glibc packages by using the static version of rpm if this is installed;

rpmi -ivh glibc-<the rest>

Use the locate command to find if this is available; locate rpmi
Big lesson learned . I was able to cd into the directory jlightner mentioned, but was not able to execute anything. The only thing working are bash shell commands.
 
Old 11-04-2007, 01:47 PM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You can try using rpm2cpio and cpio also, hopefully this will work, example;

rpm2cpio < the_name_of_the_rpm_package_here > glibc.cpio
cpio -i -d < glibc.cpio

Copy the resulting contents (the files and directories) to the appropriate locations on the root filesystem (/).
 
1 members found this post helpful.
Old 11-05-2007, 12:25 AM   #11
myt
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Lenard View Post
You can try using rpm2cpio and cpio also, hopefully this will work, example;

rpm2cpio < the_name_of_the_rpm_package_here > glibc.cpio
cpio -i -d < glibc.cpio

Copy the resulting contents (the files and directories) to the appropriate locations on the root filesystem (/).
As noted before, nothing works beside shell commands. The only programs that works are the ones already loaded into memory.

I don't want to restart my computer just yet, because SuSE wouldn't likely to be able to boot up. However, I do have a barebone version of SuSE 10.1 installed in another partition and *might* be able access the filesystem on the main partition. I am wondering if I would be able to copy the files for glibc from the barebone version to the full version so as to fix the problem. I also have the install DVD. Would that help with anything?
 
Old 11-05-2007, 12:51 AM   #12
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I've tried googling for such a situation, and haven't found much about this situation. So, I wonder if:

1) boot the barebones 10.1
2) create a mount point for the problem partition
3) mount the problem partition
4) download the glibc rpm from the Suse repository (the same one you deleted)
5) move or copy that rpm to the problem partition
6) chroot into the partition
7) try to run rpm -i from there

I confess I am grasping at straws.
 
1 members found this post helpful.
Old 11-06-2007, 02:58 AM   #13
myt
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks for all the help, guys! I was able to boot into failsafe mode and mount the problem partition as bigrigdriver suggested. I then proceeded to curl the rpm package and followed the suggestion by Lenard.
Quote:
rpm2cpio < the_name_of_the_rpm_package_here > glibc.cpio
cpio -i -d < glibc.cpio

Copy the resulting contents (the files and directories) to the appropriate locations on the root filesystem (/).
Now everything is working normally as before. Once again, thank you all very much!
 
  


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
URGENT!!! Compiz has removed all control buttons! vacuman Ubuntu 1 08-13-2007 04:03 AM
glibc detected double free or corruption (URGENT) dayalan_cse Programming 4 10-30-2006 03:23 PM
URGENT glibc 2.3.3 - lfs -5.1 --> bug in autoconf geiser Linux From Scratch 1 08-18-2004 03:48 PM
extremely urgent help needed - disk space h/w Linux - Newbie 3 10-08-2003 10:59 AM
Urgent," up2date" extremely makes mistakes while upgrading! liumang Linux - Networking 1 07-13-2003 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:38 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