Page 2 of 4

Re: Upgrade Borked System

Posted: Sat Jul 28, 2018 12:29 am
by Powerwagon77
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.

Re: Upgrade Borked System

Posted: Sat Jul 28, 2018 10:06 am
by ericbsd
@Powerwagon77 Thanks, did not even know about that.

Re: Upgrade Borked System

Posted: Sat Jul 28, 2018 10:12 am
by ericbsd
I could probably add an option to do a sanity check with the update manager.

Re: Upgrade Borked System

Posted: Sat Jul 28, 2018 4:57 pm
by Powerwagon77
@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

Re: Upgrade Borked System

Posted: Sat Jul 28, 2018 5:17 pm
by frogprince
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?

Re: Upgrade Borked System

Posted: Sun Jul 29, 2018 7:20 pm
by Powerwagon77
"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

Re: Upgrade Borked System

Posted: Mon Jul 30, 2018 11:20 am
by frogprince
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?

Re: Upgrade Borked System

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

Re: Upgrade Borked System

Posted: Tue Jul 31, 2018 7:40 pm
by dhenzler
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.

Re: Upgrade Borked System

Posted: Thu Aug 02, 2018 2:59 pm
by Powerwagon77
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.