Bug 195961 - ports-mgmt/pkg: Checking integrity...Assertion failed
Summary: ports-mgmt/pkg: Checking integrity...Assertion failed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-14 10:57 UTC by Thierry Thomas
Modified: 2018-11-04 20:58 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer freebsd_triage 2014-12-14 10:57:01 UTC
As written in ports/UPDATING for the 20141126 entry (Perl), I ran:

# pkg upgrade -f

Everything went as expected, i.e. fetching many packages, and suddenly:

...
Fetching OpenEXR-2.2.0_3.txz: 100%    3 MB   1.7M/s    00:02    
Fetching MathJax-2.4.0.txz: 100%   16 MB   1.4M/s    00:12    
Fetching Coin-3.1.3_8.txz: 100%    2 MB   2.4M/s    00:01    
Checking integrity...Assertion failed: (strcmp(uid, p->uid) != 0), function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, line 350.
Child process pid=64940 terminated abnormally: Abort trap

Notes:

$ pkg -v
1.4.0

$ uname -K -p -r
10.1-STABLE amd64 1001502
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2014-12-14 11:23:21 UTC
Remark: the previous session was run inside a `su -m' session.

Trying to run it again from a root login session gives this result:

# pkg upgrade -f
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.

All repositories are up-to-date.
Checking for upgrades (1431 candidates):  58%
libfreehand00 has no direct installation candidates, change it to libfreehand? [
Y/n]:
Checking for upgrades (1431 candidates):  91%
db42 has no direct installation candidates, change it to db? [Y/n]:
Checking for upgrades (1431 candidates): 100%
Processing candidates (1431 candidates): 100%
pkg: sqlite error while executing UPDATE packages SET name=?1  WHERE name=?2; in
 file pkg_jobs.c:1601: UNIQUE constraint failed: packages.name
pkg: sqlite error while executing UPDATE packages SET name=?1  WHERE name=?2; in
 file pkg_jobs.c:1601: UNIQUE constraint failed: packages.name
Checking integrity...Assertion failed: (strcmp(uid, p->uid) != 0), function pkg_
conflicts_check_local_path, file pkg_jobs_conflicts.c, line 350.
Child process pid=65455 terminated abnormally: Abort trap
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2014-12-22 14:31:39 UTC
Same failure one week later with the next packages set!

Checking integrity...Assertion failed: (strcmp(uid, p->uid) != 0), function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, line 350.
Child process pid=53216 terminated abnormally: Abort trap
Comment 3 dev 2014-12-29 12:39:49 UTC
Any workaround? Thjis is critical. I am sitting here with a production system and a failed upgrade...
Comment 4 dev 2014-12-29 12:45:44 UTC
Ok,

# pkg upgrade

without -f did it.
Comment 5 Baptiste Daroussin freebsd_committer freebsd_triage 2014-12-29 23:21:42 UTC
pkg 1.4.2 fixes it in single repo
1.4.3 fixes it in multi repo
Comment 6 cybermerlin 2018-11-04 20:58:59 UTC
(In reply to Baptiste Daroussin from comment #5)
still exists

pkg -v 1.10.4

or again? 
These developers are so miraclest.