LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-11-2003, 02:22 PM   #1
nextekcarl
Member
 
Registered: Oct 2003
Location: Portland
Distribution: Gentoo
Posts: 73

Rep: Reputation: 15
Can't install some RPMs, /sbin/sh not found?


I'm here because I'm a Linux noobie, but I was able to upgrade my nvidia drivers, so I am getting better. My question is many of the RPM's I've tried to install on my RH9 machine fail because it says I'm missing a dependency. It says I'm missing /sbin/sh and suggests bash.205b-20.rpm (or something close to that) as a way to fix it. But I've checked and I've got bash-2.05b-20.1 installed. Is the problem that I have a newer version of bash installed? Any help would be greatly appreciated.
 
Old 10-11-2003, 02:56 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,893

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
"I've checked and I've got bash-2.05b-20.1 installed."

There are several different shells. People use ash, bash, tsh and whatnot. To make systems more compatible there is a convention that the file /sh is a symlink to your shell. So assuming that your bash is in /bin then you can satisy the rpm dependencies by making /sbin/sh a symbolic link to /bin/bash:

ln -s /bin/bash /sbin/sh



___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-11-2003, 03:19 PM   #3
nextekcarl
Member
 
Registered: Oct 2003
Location: Portland
Distribution: Gentoo
Posts: 73

Original Poster
Rep: Reputation: 15
Now I'm getting an entirely new error:

rpmdb: fatal region error detected; run recovery
error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run data
base recovery
error: cannot open Packages index using db3 - (-30982)
error: cannot open Packages database in /var/lib/rpm



How do I fix this? I can't find an actual db_recovery command.
 
Old 10-11-2003, 03:59 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,893

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
"How do I fix this?"

Your rpm data base is broken and needs to be rebuilt.

" I can't find an actual db_recovery command."

It is a subcommand of rpm. See:
man rpm
and read the REBUILD DATABASE OPTIONS.

Try:
rpm --rebuilddb

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 10-12-2003, 05:36 PM   #5
nextekcarl
Member
 
Registered: Oct 2003
Location: Portland
Distribution: Gentoo
Posts: 73

Original Poster
Rep: Reputation: 15
Thank you very much, I was able to fix the problem. In case anyone else has a similar problem, www.rpm.org has useful information about fixing such problems. There is a command you can run first that stops hung rpm functions and then rebuilding the database will work (at least it did for me). I also installed apt and synaptic, which appear to be great tools (so far.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/sbin/rc: line 271: /sbin/devfsd: No such file or directory Alexander.s Linux - General 3 04-22-2005 05:44 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 10:29 AM
sbin/grub not found Forezt Linux - General 3 02-22-2004 03:15 PM
/sbin/ifconfig gives command not found - help dmalsbury Linux - Software 8 01-06-2004 10:14 PM
/sbin/xlogin file not found minor Linux - General 0 05-09-2001 05:37 AM

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

All times are GMT -5. The time now is 10:12 AM.

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