Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-03-2009, 05:30 AM   #1
Registered: Jul 2009
Location: Lowell, Massachusetts
Distribution: Slackware
Posts: 70

Rep: Reputation: 17
I Think I Wrecked My Installation In An Upgrade

So my installation had been working great, and then this morning I had the brilliant idea to do an upgrade to current using slackpkg, well, I installed a series of packages like seamonkeysolibs and xf86 drivers and stuff, and I also checked off to upgrade bash. I believe that's where my problem is, after things started upgrading, slackpkg abruptly stopped with an upgradepkg error, and now whenever I try to do anything I get the:
Error: cannot execute /bin/sh executable not found
or something similar to that. But if you look /bin/sh is not there, and now that I've turned off my system I'm not going to be able to log back on. I also tried to chroot it from an install disk and it didn't work. Anyone have any ideas on how to help me out of this?
Old 10-03-2009, 06:26 AM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 5,639

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
Well, as there is not so much difference between -13.0 and -current for now, my guess is you didn't choose the good mirror in /etc/slackpkg/mirrors, i.e. you chose a slackware64-current mirror instead of a slackware-current (or reverse if you started from a slackware64-13.0).

Not sure you can do better than save your important files using a rescue disk or live cd, then reinstall. If your /home directory is in its own partition you won't have to save its content, provided you do not format it during reinstall.

Last edited by Didier Spaier; 10-03-2009 at 06:27 AM.
Old 10-03-2009, 06:31 AM   #3
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 527

Rep: Reputation: Disabled
I'll paraphrase a statement I made on IRC a moment ago:

You can break a system with slackroll, with swaret, with slapt-get, with slackpkg, and yes, even doing it "by hand" or "manually" or whatever you want to call it. In all but a small minority of cases, the tool is not to blame - it's user error, even if that error was failing to read and/or understand the documentation on how to use the tool properly.

Ultimately, shit will happen. It also happens to fly farther when using tools.
rworkman was right when he said that. Anyway, back to the point, you should make sure /bin/sh is a link to bash, and that bash exists and can be executed. You can recreate the link using a rescue disk and mounting your partitions, and you can chroot to the system to verify everything is in place and works normally. If not, you can use a USB disk to take packages from there and try to fix the problems and do the upgrade properly. Be sure to check the CHANGES_AND_HINTS.TXT file of every Slackware version you jump over to -current.
Old 10-03-2009, 07:49 AM   #4
Registered: May 2007
Posts: 397

Rep: Reputation: 122Reputation: 122
To add, make sure that you have the aaa_elflibs, etc, and glibc packages installed correctly in addition to bash for the version of slackware you are upgrading to.


binsh, executable, found, installation

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
Apache wrecked int0x80 Linux - Software 1 08-07-2009 05:18 PM
growisofs wrecked my disk! DavidMcCann Linux - Newbie 7 09-14-2007 06:38 PM
Is this harddrive wrecked? Dstruct0 Linux - Hardware 3 02-01-2007 11:23 PM
Wrecked Hard-disk Need Help?! inkysplat Linux - General 2 08-15-2005 03:21 PM
2.6 kernel wrecked my system frieza Linux - Software 4 01-03-2004 03:46 PM

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration