pkg upgrade error

I get this error, please help me understand what's the cause, thanks!

Code:
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (151 candidates): .......... done
Processing candidates (151 candidates): .......... done
Checking integrity...
Assertion failed: (strcmp(uid, p->uid) != 0), function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, line 387.
Child process pid=762 terminated abnormally: Abort trap
 
Last edited by a moderator:
Please try pkg update -f before pkg upgrade

Also, be sure that you have installed the latest pkg(8) release
Code:
% pkg -v
1.7.2
 
A possible workaround came in mind (but don't know if works):
you can try updating with pkg install.

When you try to install an already installed package, pkg will answer
Code:
The most recent version of packages are already installed
if there is not a new version, instead will give you the possibility to upgrade if there is a newer one.

To do so, get a list of packages that are not dependecies of others, and pass that list to pkg install.
pkg install `pkg query -e '%#r = 0' %o | cut -f2 -d \/`.
 
Back
Top