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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-17-2009, 06:22 AM
|
#1
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Rep: 
|
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.
|
|
|
07-17-2009, 06:34 AM
|
#2
|
Member
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294
Rep:
|
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
|
|
|
07-17-2009, 06:40 AM
|
#3
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep: 
|
Quote:
Originally Posted by zQUEz
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..
|
|
|
07-17-2009, 07:23 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
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.
|
|
|
07-17-2009, 08:43 AM
|
#5
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep: 
|
Quote:
Originally Posted by unSpawn
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...
|
|
|
07-17-2009, 10:10 AM
|
#6
|
Moderator
Registered: May 2001
Posts: 29,415
|
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.
|
|
|
All times are GMT -5. The time now is 12:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|