LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-03-2009, 06:30 AM   #1
hkothari
Member
 
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:
Code:
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, 07:26 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,646

Rep: Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231
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 07:27 AM.
 
Old 10-03-2009, 07:31 AM   #3
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 514

Rep: Reputation: Disabled
Quote:
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, 08:49 AM   #4
the3dfxdude
Member
 
Registered: May 2007
Posts: 332

Rep: Reputation: 100Reputation: 100
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.
 
  


Reply

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


All times are GMT -5. The time now is 09:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration