LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-28-2003, 06:46 AM   #31
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600

Well, it'll almost be like installing your system anew :-]

I think it will work, but verifying files from your rpm database should go first, because that would give you means to check all packages you think are ok, actually are ok (as seen by the database) and give you a list of packages you'll need to install/update.
 
Old 05-28-2003, 06:54 AM   #32
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Ok, i'll verify the RPMs and then try it.

This isn't going to erase any of my settings/files/whatever, is it?

I know it'll overwrite the programs i'm using the RPMs to reinstall, but it won't touch stuff i've added from source/RPMs not on the CD/with Wine, will it?
 
Old 05-28-2003, 07:29 AM   #33
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Hmm.... I reinstalled all the Gnome RPMs, and now if I login as root and type 'startx' XFree starts correctly.

However, if I type "su - andrew" in a console, then it says "unable to open session". If I type "su - andrew" in a console opened in the GUI it says "Segmentation fault", which is the error I got when this all started.
If I try to login at the initial console login screen (The login screen that comes up when your computer starts at run level 3) it says something about a shell, and then logs me back out and erases whatever it said about a shell.

I haven't checked to see if the GUI starts correctly with the computer, because wget is downloading RH9 CDs 2 and 3 and I don't want to interrupt it.

Do you think I need to reinstall some RPMs to get su to work, and if you do which ones are they? I tried installing the sudo RPM again, but that didn't work.


Last edited by pilot1; 05-28-2003 at 07:34 AM.
 
Old 05-28-2003, 09:43 AM   #34
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I think it's about time you get some tenacity award :-]

For sudo to work I think you better check the dependencies:
rpm -q -R sudo: /etc/pam.d/system-auth /bin/sh ld-linux.so.2
libcrypt.so.1 libc.so.6 libdl.so.2 libpam.so.0 libc.so.6
That's the PAM, Bash and Glibc2 rpms. Verify 'em.
 
Old 05-28-2003, 02:41 PM   #35
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
lol, i'm determined not to format my hard drive, since I have a ton of stuff on it that I don't have the time to replace.

According to RPM none of those packages are installed, but I know that atleast some of them are.
I tried /bin/sh and that works fine, and i'd think the auth one's would be fine since I can login as root, just not as andrew.
Any ideas?
Also, I noticed there were some more glibc RPMs on the second CD (The 3rd hasn't finished yet), so i'll try installing them. Hopefully that'll do it.


[Edit] Actually I checked and according to RPM nothing is installed, so the database is probably messed up. I tried to rebuild it, but I got an error. So whatever's messing the other stuff up is probably messing the RPM database's rebuilding up too. [Edit]

Last edited by pilot1; 05-28-2003 at 02:48 PM.
 
Old 05-28-2003, 04:01 PM   #36
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Reinstalling the glibc RPMs didn't help, I guess i'll just have to reinstall all the RPMs and hope that works.

Is there anything else that I could try, before I do a rpm -ivh *.rpm --force in a directory with the RPMs from all three CDs?

Last edited by pilot1; 05-28-2003 at 04:05 PM.
 
Old 05-28-2003, 04:51 PM   #37
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Uhh. I don't think it's wise to install *all* the rpms you can find.
I think you should focus on repairing the rpm database first. Are there any files in /var/lib/rpm that start with underscores? If you remove then before trying to rebuild the rpm database you might have a chance. Also use the double "-v" flag and pipe all the output to a log, makes it easier to check out.

If rebuilding didn't work then at least you got an idea where it fails. In the past I had such a problem, what I did was use "--justdb" to remove the entry from the db then reinstall those rpms to fix it.

If rebuilding works focus on verifying the existing rpms, then you possibly got a better basis for trying to select and refresh necessary base binaries/lib rpms first.
 
Old 05-28-2003, 04:59 PM   #38
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Ok, i'm rebuilding the database now.
What do you mean by the double v flag? rpm -vv..?

[Edit] Ohhh, do rpm --rebuilddb -vv, it's running the command now. There were 3 files starting with __ in the rpm directory, I deleted them and hopefully that will help. [Edit]

Last edited by pilot1; 05-28-2003 at 05:09 PM.
 
Old 05-29-2003, 11:23 AM   #39
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Ok, I did that, reinstalled all the RPMs that I needed to, and it still has the same problem.

I noticed that root's GUI was Gnome, and root's GUI works. Isn't the initial login screen done by KDE? That might explain why root can start X but the computer can't.

I *could* just use the computer like this.. I really don't like being root, but if I can't fix it..
Any idea when the next RH beta will be out? Installing it would probably fix all this. Or atleast I hope it would.
 
Old 06-02-2003, 04:52 PM   #40
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Ok, I did that, reinstalled all the RPMs that I needed to, and it still has the same problem.
Damn. That's bad.

Any idea when the next RH beta will be out? Installing it would probably fix all this. Or atleast I hope it would.
Not to discredit all your efforts and all the time you put into this, but you must agree with me that by now your box is in the twilight zone somewhere past "repairable" and sliding fast towards being totally "untrustworthy". Segfaults can have different causes and we don't know how to fix this w/o having the rpm database (an Aide, Samhain or tripwire database would be even better), permissions? b0rken binaries? missing libraries?.

Running everything as root *will* get you into trouble no matter what you do, and by now I would advice you to backup your configs in /etc and user files in /home and reinstall. I know, it sounds bad, but after you're done you got a system you can trust and work with.

I'm sorry for you, but I think it is the best solution.
 
Old 06-07-2003, 06:23 AM   #41
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
Tripwire database?
Excuse me, i'm going to go shoot myself for not checking root's mail and forgetting I had one.
I'll check that and try reinstalling those files, if that doesn't work i'll just backup and reinstall.
Thanks for all your help.
 
Old 06-07-2003, 07:22 AM   #42
pilot1
Member
 
Registered: Jun 2002
Location: USA
Distribution: Gentoo, Fedora Core
Posts: 408

Original Poster
Rep: Reputation: 30
I was just able to read the message it flashes up when I try to login as andrew, and I think it's the problem.. it was something like "login: no shell: permission denied".

/bin/bash is set as my login shell, what are the correct permissions for /bin/bash?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
Compiling glibc-2.3.5 or glibc 2.3.5-r1 on Gentoo fails ghrellin Linux - Software 2 07-19-2005 01:01 AM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
ncsd, glibc, and glibc-common conflicts during LAMP install beaker911 Linux - Software 0 12-30-2004 02:31 PM
glibc 2.3.2 => glibc 2.3.3 causes bash & syslog issues natetheros Red Hat 1 09-27-2004 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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