Upgrade Borked System

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
dhenzler
Posts: 35
Joined: Tue Jan 23, 2018 11:56 am
Has thanked: 0
Been thanked: 1 time

Re: Upgrade Borked System

Post by dhenzler » Fri Aug 03, 2018 10:11 pm

I've always used BASH. Started in 1988 on Solaris 8

User avatar
Powerwagon77
Posts: 18
Joined: Sat Jul 07, 2018 2:14 pm
Has thanked: 3 times
Been thanked: 4 times

Re: Upgrade Borked System

Post by Powerwagon77 » Fri Aug 03, 2018 10:39 pm

I thought that csh and ksh were the main shells Solaris folks used. I'd love to learn them, but bash has been the default on everything I've used in earnest until now.
These users thanked the author Powerwagon77 for the post:
Casper (Sat Aug 04, 2018 3:20 pm)
Rating: 50%

dhenzler
Posts: 35
Joined: Tue Jan 23, 2018 11:56 am
Has thanked: 0
Been thanked: 1 time

Re: Upgrade Borked System

Post by dhenzler » Fri Aug 03, 2018 11:35 pm

IMHO if a system NEEDS you to use a particular shell... it should tell you when you attempt to use another.
These users thanked the author dhenzler for the post:
Powerwagon77 (Fri Aug 03, 2018 11:38 pm)
Rating: 50%

dhenzler
Posts: 35
Joined: Tue Jan 23, 2018 11:56 am
Has thanked: 0
Been thanked: 1 time

Re: Upgrade Borked System

Post by dhenzler » Sat Aug 04, 2018 12:44 pm

So is there one shell that reigns supreme ?

frogprince
Posts: 59
Joined: Mon Jul 10, 2017 9:50 pm
Has thanked: 4 times
Been thanked: 2 times

Re: Upgrade Borked System - One More Time

Post by frogprince » Sat Aug 04, 2018 3:30 pm

Powerwagon: I really appreciate your time and attention to this issue, but I'm still getting error messages. I changed "foreach" to "for each", but this time I got:

for each i (`cat /tmp/sad-packages.txt`)
Badly placed ()'s
echo " "

echo $i
i: undefined variable
pkg install -fy $i
i: undefined variable
end
Vas you efer in Zinzinnati? Asus F1A75-M, AMD A8-3870 APU, 6 GB DDR3/120 GB SSD, GeForce 210, missing front drive panel just like its owner.

User avatar
Powerwagon77
Posts: 18
Joined: Sat Jul 07, 2018 2:14 pm
Has thanked: 3 times
Been thanked: 4 times

Re: Upgrade Borked System

Post by Powerwagon77 » Sat Aug 04, 2018 5:05 pm

I'm glad to help. I hope that I am actually helping. :mrgreen: "foreach" is what you need if you are using the default root shell, csh, which, I guess is actually tcsh. To find out what shell you are using, once you are the root user, because it can change, type:

Code: Select all

echo $SHELL
CSH
If it returns '/bin/csh' then follow the instructions, exactly, here: https://forums.ghostbsd.org/viewtopic.p ... t=20#p6050
BASH
If if says '/usr/local/bin/bash' then do these in order, one line at a time:

Code: Select all

pkg update -f

Code: Select all

pkg check -d

Code: Select all

pkg check -s 2>&1 | cut -d: -f1 |grep -v Checking |uniq > /tmp/sad-packages.txt

Code: Select all

for i in `cat /tmp/sad-packages.txt`; do echo -e "\n $i";pkg install -fy $i; done
If it says anything else beside those 2:
1. choose one, bash or csh
2. become root if you aren't
3. type the shell name ('bash' or 'csh')
4. follow the directions for the shell you chose

Hopefully that distils things down.

@dhenzler : There are quite a few guys I've met that prefer those shells. They are pretty smart and I just assume that there is a good reason for it. I'm talking about the quality of people that write could machine learning AI in 'awk' :lol:

frogprince
Posts: 59
Joined: Mon Jul 10, 2017 9:50 pm
Has thanked: 4 times
Been thanked: 2 times

Re: Upgrade Borked System

Post by frogprince » Sat Aug 04, 2018 6:15 pm

So, at the end of my efforts above, Update Station told me that there were updates. So I updated, rebooted, and tried again. All was the same. So I uninstalled and reinstalled Clementine, mate-terminal, and Firefox. Clementine now works, so that's progress. But mate-terminal will not; when I try to invoke it from Xterm, I get:

>mate-terminal
mate-terminal terminated by signal SIGSEGV (Address boundary error)

Firefox still gives me a plain black window without the URL window. So I opened /usr/local/bin, and clicked on "firefox".
I got an immediate error message stating:

There is no application installed for "shared library" files.

Trying to open it from a terminal yields:

>/usr/local/bin/firefox
Javascript error: chrome://global/content/browser-child.js, line 352: NS_ERROR_NOT_AVAILABLE: [nsIWebNavigation.loadURIWithOptions]

Somehow, I'm not getting the installation packages I need for these software applications from the repository. ?????
Vas you efer in Zinzinnati? Asus F1A75-M, AMD A8-3870 APU, 6 GB DDR3/120 GB SSD, GeForce 210, missing front drive panel just like its owner.

User avatar
Powerwagon77
Posts: 18
Joined: Sat Jul 07, 2018 2:14 pm
Has thanked: 3 times
Been thanked: 4 times

Re: Upgrade Borked System

Post by Powerwagon77 » Sat Aug 04, 2018 6:50 pm

Would you mind sharing some of your info? If you can run this command, it'll pump out all your installed packages to a file.

Code: Select all

pkg info > my-installed-packages.txt
It should work for any shell. Either attach it to your post, which is easier, or copy/paste the contents which may not work depending now many characters are allowed.

frogprince
Posts: 59
Joined: Mon Jul 10, 2017 9:50 pm
Has thanked: 4 times
Been thanked: 2 times

Re: Upgrade Borked System

Post by frogprince » Tue Aug 07, 2018 11:58 am

So..I'm embarrassed, but maybe this will help someone else. My problem turned out to be hardware. When i tried to reboot to provide Powerwagon with my package information, the system wouldn't boot correctly: wrong desktop background, no toolbar, wiggling icons. I bought and installed a PNY SSD, reinstalled Ghost, ran through all the updates, and now things are fine again. I'm curious why fsck didn't note any problems on that drive; that was the first thing I tried. And the HD was only about six months old, and never had anything but Ghost on it. No more Toshiba drives for me!

Thank you, Powerwagon and Eric, for all your time and trouble. Right now I'm good to go.
These users thanked the author frogprince for the post:
Powerwagon77 (Tue Aug 07, 2018 12:21 pm)
Rating: 50%
Vas you efer in Zinzinnati? Asus F1A75-M, AMD A8-3870 APU, 6 GB DDR3/120 GB SSD, GeForce 210, missing front drive panel just like its owner.

Post Reply