LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-21-2020, 05:38 PM   #1
costasdk
LQ Newbie
 
Registered: Mar 2008
Location: Athens, Hellas
Distribution: Slacware, Xubuntu, XP
Posts: 5

Rep: Reputation: 0
/bin/bash unreachable after upgrade-all 14.2


After downloading iso i did new installation of 14.2 from usb .
Then i did slackpkg update and upgrade-all .

One of the packages to be upgraded must have some error like :
line 499 and 501 or 511 error and some library missing .

There is not enough time to see what package caused the error as upgrade is running to fast .
As a result /bin/bash is declared as missing and system becomes unreachable and not booting .
But /bin/bash exists with details 1164640 bytes Aug 30 21:29 .

After a second installation of 14.2 i tried for a third time update and upgrade-all so i got the same error .
So for another time i cannot boot and i am sending this from usb booted Porteus .

By searching /var/log/packages/ it seems that the last package to be upgraded was glib-solibs-2.23-x86_64-4_slack14.2 .
I don't know if is that that causes the error .

I tried to recreate error from Porteus bash to /mnt/sdb2 (14.2 root):
find . -type f -name slackpkg > ./usr/sbin/slackpkg (so it exists)
chroot /mnt/sdb2 /usr/sbin/slackpkg upgrade-all >
chroot: failed to run command ‘/usr/sbin/slackpkg’: No such file or directory

How can i reverse the error without new installation as chroot not working ?
Am i the only with this error ?

thanks in advance for any help
 
Old 02-22-2020, 12:38 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,301
Blog Entries: 21

Rep: Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801Reputation: 4801
I'm pretty sure that the missing library is glibc-solibs, not glib-solibs. glib, like most Slackware libraries comes in a complete package, i.e. runtime library plus headers. The only libraries as far as I know that come in solibs (runtime only) packages are glibc and openssl.

Unfortunately glibc is the package that everything else uses, including bash. The only way I can think of to fix this would be to boot from a rescue disc, download glibc-solibs from a mirror and try to install it by running upgradepkg from the Slackware root partition. This is a script, not a program, so it should run if you use your rescue image's bash rather than trying to chroot. I'm not sure though how you would ensure that it gets installed to your hard drive's root partition without chrooting. Hopefully someone else can tell you that.
 
Old 02-22-2020, 04:23 PM   #3
costasdk
LQ Newbie
 
Registered: Mar 2008
Location: Athens, Hellas
Distribution: Slacware, Xubuntu, XP
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your help .
I will try to do full metal restore .
I am afraid that this glib-solibs package has some error because this happend twice and that can happen to someone else .


Quote:
Originally Posted by hazel View Post
I'm pretty sure that the missing library is glibc-solibs, not glib-solibs. glib, like most Slackware libraries comes in a complete package, i.e. runtime library plus headers. The only libraries as far as I know that come in solibs (runtime only) packages are glibc and openssl.

Unfortunately glibc is the package that everything else uses, including bash. The only way I can think of to fix this would be to boot from a rescue disc, download glibc-solibs from a mirror and try to install it by running upgradepkg from the Slackware root partition. This is a script, not a program, so it should run if you use your rescue image's bash rather than trying to chroot. I'm not sure though how you would ensure that it gets installed to your hard drive's root partition without chrooting. Hopefully someone else can tell you that.
 
Old 02-22-2020, 11:03 PM   #4
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 513

Rep: Reputation: Disabled
@costasdk, your typing habit still seems to be "glib-solibs", not "glibc-solibs".

It's "glibc" you're looking for. Yes, typing that little "c" can make a big difference.
 
Old 02-24-2020, 04:06 PM   #5
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
@costasdk

On your first Slackware 14.2 update, follow what I presented in these two posts ( I'm too lazy to rewrite the hints only for you ):

https://www.linuxquestions.org/quest...ml#post6081349

https://www.linuxquestions.org/quest...ml#post6081373
 
Old 03-04-2020, 03:46 PM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,440
Blog Entries: 3

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
/bin/bash unreachable after upgrade-all 14.2

Did you telinit 1 before upgrade?

I'd have a look to UPGRADE.TXT before anything. Even if it's for upgrading from another version, it shows the safe way. I used to do that whenever a sensible package had to be upgraded.
 
  


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
Network is Unreachable/Unknown host/Destination Host Unreachable [Debian] denv Linux - Networking 4 03-27-2014 02:58 PM
[SOLVED] Snort Signature: ICMP Destination Unreachable Port Unreachable very noisy mhollis Linux - Security 4 08-15-2011 02:01 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM

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

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