LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2009, 06:22 AM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
rpm and yum not working,am totally messed up !!!!


I tried to install unrar which required glibc-2.5-34,but in my system 2.5-12 was installed.I tried to update the package ,but can't.So I thought to remove glibc manually with --nodeps option and install the newer. Version 2.5.12 removed now with some backup files saved.But when I try to install the newer version rpm not working and a no of commands also not working.I tried to install them from dvd but cant.


What will I do now ,am gone mad!!!


Sometimes it's saying

/bin/sh-bad interpreter
/bin/python-bad interpreter

Last edited by divyashree; 07-17-2009 at 06:35 AM.
 
Old 07-17-2009, 06:34 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
What Linux distro are you using?
Are/were you using YUM to keep your system up-to-date or is it out of date package wise?
it sounds like you are using YUM, so what happens/errors when you try the following:
#> yum clean all
#> yum install glibc

or

#> yum reinstall glibc
 
Old 07-17-2009, 06:40 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by zQUEz View Post
What Linux distro are you using?
Are/were you using YUM to keep your system up-to-date or is it out of date package wise?
it sounds like you are using YUM, so what happens/errors when you try the following:
#> yum clean all
#> yum install glibc

or

#> yum reinstall glibc
I forgot to say yum is also not working,I use RHEL5..
 
Old 07-17-2009, 07:23 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What you've found is that next to the kernel the OS can't function without glibc. If an application asks for another glibc version you don't install another glibc to satisfy dependencies but instead you find a version of the application suited for your machine. If the machine is inoperable (you didn't tell if it is local or in colocation) use any other machine, boot a Live CD (with rpm on it), locate the glibc package for your system (not old, not new but current) and run 'mkdir /tmp/glibc && cd /tmp/glibc && rpm2cpio /path/to/glibc.rightversion.rpm | cpio -idmv' and then copy the resultant files to the machine. Before you copy over the files clean out all the files belonging to the previous package. A listing you can get if you have/download that rpm and run 'rpm -qpl /path/to/glibc.wrongversion.rpm' on it.
 
Old 07-17-2009, 08:43 AM   #5
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by unSpawn View Post
What you've found is that next to the kernel the OS can't function without glibc. If an application asks for another glibc version you don't install another glibc to satisfy dependencies but instead you find a version of the application suited for your machine. If the machine is inoperable (you didn't tell if it is local or in colocation) use any other machine, boot a Live CD (with rpm on it), locate the glibc package for your system (not old, not new but current) and run 'mkdir /tmp/glibc && cd /tmp/glibc && rpm2cpio /path/to/glibc.rightversion.rpm | cpio -idmv' and then copy the resultant files to the machine. Before you copy over the files clean out all the files belonging to the previous package. A listing you can get if you have/download that rpm and run 'rpm -qpl /path/to/glibc.wrongversion.rpm' on it.
Sorry bro,before 45 minutes my network also disabled automatically and I couldn't fix that to access ur advice,Now am freshly installed RHEL5.
And thanks a lot for ur info. I'll test ur points creating such situation on my vmware guest RHEL5 n will inform u...
 
Old 07-17-2009, 10:10 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for responding. No need to go through all that trouble I think. But you should read some Red Hat admin docs. That'll help.
 
  


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
Totally messed up with squid3 as transparent proxy PATRINOS06 Linux - Networking 2 10-12-2008 01:10 PM
Totally messed up the user permissions.*want to cry* hottdogg Slackware 6 08-31-2007 05:00 AM
Totally messed up the user permissions.*want to cry* hottdogg Slackware 2 08-30-2007 02:13 PM
sound totally messed up djlosch Linux - Hardware 8 09-02-2004 09:24 PM
GRUB is totally messed up! is blaster to blame randyriver10 Linux - Software 6 03-22-2004 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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