Upgrade Borked System

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
User avatar
Powerwagon77
Posts: 18
Joined: Sat Jul 07, 2018 2:14 pm
Has thanked: 3 times
Been thanked: 5 times

Re: Upgrade Borked System

Post by Powerwagon77 » Sat Jul 28, 2018 12:29 am

I'm always late, but there are a few commands that could possibly help out, in order. Run these in a terminal, of course.

If there is something missing:

Code: Select all

pkg check -d

If there is something corrupted:

Code: Select all

pkg check -s
I hope it says something useful.
These users thanked the author Powerwagon77 for the post:
ericbsd (Sat Jul 28, 2018 10:03 am)
Rating: 50%

User avatar
ericbsd
Developer
Posts: 1442
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 39 times
Been thanked: 56 times

Re: Upgrade Borked System

Post by ericbsd » Sat Jul 28, 2018 10:06 am

@Powerwagon77 Thanks, did not even know about that.

User avatar
ericbsd
Developer
Posts: 1442
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 39 times
Been thanked: 56 times

Re: Upgrade Borked System

Post by ericbsd » Sat Jul 28, 2018 10:12 am

I could probably add an option to do a sanity check with the update manager.
These users thanked the author ericbsd for the post:
Powerwagon77 (Sun Jul 29, 2018 7:20 pm)
Rating: 50%

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

Re: Upgrade Borked System

Post by Powerwagon77 » Sat Jul 28, 2018 4:57 pm

@ericbsd , that would be awesome.

As for @frogprince , if you see any output from

Code: Select all

pkg check -s
it tells you what package is having problems, and you can run

Code: Select all

pkg install -fy <pkg name>
to force a reinstall and fix any issues.
HOWEVER, there are some packages that won't 'fix'. On my machine, libgdata and bluefish seem to have missing files, but it doesn't affect anything. I wouldn't go crazy trying to fix everything, just ones that look like they are part of your problem.
In your case, look at 'pkg info firefox' which shows you all the shared libraries needed.

HTH

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

Re: Upgrade Borked System

Post by frogprince » Sat Jul 28, 2018 5:17 pm

So..running pkg check -d yielded nothing. Running pkg check -s yielded a semi-infinite list of packages whose signatures did not match. I ran fsck successfully, got a report of a clean system, but that did not fix the problem. Is there a way to force a complete update to the system without reinstalling?
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: 5 times

Re: Upgrade Borked System

Post by Powerwagon77 » Sun Jul 29, 2018 7:20 pm

"Semi infinate" made me chuckle, but I feel for your situation!

If you're willing, the commands below should be able to sort things out for you automatically. I have no idea how long this will end up taking. It could be quite a while, maybe even hours. It might be worth your time to just reinstall the OS. However...

This will put all of the problem packages into a file, removing duplicates:

Code: Select all

pkg check -s 2>&1 | cut -d: -f1 |grep -v Checking |uniq > /tmp/sad-packages.txt
This will go through that file and reinstall those problem packages:

Code: Select all

for i in `cat /tmp/sad-packages.txt`; do echo -e "\n $i";pkg install -fy $i; done
These users thanked the author Powerwagon77 for the post:
frogprince (Tue Aug 07, 2018 12:00 pm)
Rating: 50%

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

Re: Upgrade Borked System

Post by frogprince » Mon Jul 30, 2018 11:20 am

Powerwagon: thanks! But when I cut and paste the first line into a terminal as root, I get an error:

"Ambiguous output redirect"

Should there be spaces after all three |'s?
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.

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 » Tue Jul 31, 2018 11:45 am

Well whatever it was... got me too. Firefox said it needed an update, and I selected firefox 61 in Octo and it did that and more, and more... I figured something was wrong when it continued. Must be a virus...
I'm going on vacation... can't worry about this for more than another hour. Then bye bye for several weeks.

Write me when you guys figure this out

Dave

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 » Tue Jul 31, 2018 7:40 pm

I loaded Opra to get functional once again. However Java scripts are not turned on.... futzing with that now....what a waste of time.

Someone did this to us.... and I'm pissed.

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

Re: Upgrade Borked System

Post by Powerwagon77 » Thu Aug 02, 2018 2:59 pm

Sorry guys, you're looking at my Linux roots showing. If you type 'bash', it'll switch your shell temporarily and those scripts will work properly. I'll work on getting them right for csh, tonight. They need to be run as user root.

Post Reply