LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-20-2006, 06:10 AM   #1
tbollen
LQ Newbie
 
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
Unhappy Missing /bin/sh


Hi,

I use Swaret to keep my Slackware installation current. It appears to have done something which it shouldn't have. My /bin/sh seems to be missing.

I used Swaret the same way I always do:
swaret --update
swaret --upgrade
choose packages to update
update

It upgraded aaa_base-10.2.0-noarch-3 and bash-3.1-i486-3 but after that it couldn't upgrade anything else anymore giving the error: /bin/sh: bad interpreter: No such file or directory

I confirmed this, the sh binary isn't there anymore. Weird thing is, afaik it didn't get deleted by the two updates..

But, now having no shell, hardly anything works, anybody knows how I can resolve it? In which package does Slackware ship the sh binary?

Thanks!
 
Old 03-20-2006, 06:38 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
/bin/sh is normally just a link to /bin/bash - maybe that got deleted by your bash-upgrade...?
Code:
cd /bin
ln -s bash sh
or just
Code:
ln -s /bin/bash /bin/sh
will recreate it
 
Old 03-20-2006, 02:41 PM   #3
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 467

Rep: Reputation: 55
Quote:
Originally Posted by tbollen
anybody knows how I can resolve it? In which package does Slackware ship the sh binary?
Sorry about your installation. Here's package http://slackware.it/en/pb/package.ph...0.2.0-noarch-2
here's bash http://slackware.it/en/pb/package.ph...ash-3.0-i486-3
and quote:
Quote:
aaa_base (Basic Linux filesystem package)
Sets up the empty directory tree for Slackware and adds an email to
root's mailbox welcoming them to Linux. This package should be
installed first, and never uninstalled.
I would make an ultraquick "reinstall" the way denning saved my installation on this post http://www.linuxquestions.org/questi...d.php?t=243799
I'm almost sure it should work, good luck

Last edited by MannyNix; 03-20-2006 at 02:45 PM.
 
Old 03-20-2006, 03:39 PM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
/bin/sh is nothing special - it is just a link to /bin/bash which is the default shell on (almost - since I can't be sure...) all linux systems.

The second package referenced by mannyslack contains bash

The first contains the empty directory-tree mentioned - and if you look at the script "doinst.sh" in the install directory of the package, you will see that this _should_ have done exactly what I suggested:

6 lines before the end, /bin/sh gets deleted
5 lines before the end the link gets recreated

If /bin/bash is still there - but not /bin/sh - then you can eighter make the symlink yourself - or install the aaa_base package again
 
  


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
yast warnings : /bin/sh missing pomelo Linux - Software 2 02-10-2006 02:28 PM
Recycaliing Bin Missing On Gnome?! Prometheuz Linux - Newbie 3 06-29-2005 11:07 AM
missing /bin/sh??? dasbooter SUSE / openSUSE 11 06-18-2005 03:45 AM
command ifconfig, route, tracert... missing in /bin mae Red Hat 2 09-18-2003 10:08 AM
/usr/bin/wish missing ?!?!?!?! Shantesh Linux - Software 3 09-10-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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