Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2015 15:12:51 +0200
From:      =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernando.apesteguia@gmail.com>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: pkg Assertion failed. Help needed.
Message-ID:  <CAGwOe2bZh%2BKBagtrT5-DTN4SmHWiy=Q4FQmpjm5jAmZM=kRzWQ@mail.gmail.com>
In-Reply-To: <CAGwOe2YDhk%2BNFuqG2b4%2BAm7FDNYbcAAuUTw4ez%2BUd%2BzQBXg7nA@mail.gmail.com>
References:  <CAGwOe2YDhk%2BNFuqG2b4%2BAm7FDNYbcAAuUTw4ez%2BUd%2BzQBXg7nA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 24, 2015 at 6:15 PM, Fernando Apestegu=C3=ADa
<fernando.apesteguia@gmail.com> wrote:
> Hi there,
>
> I'm in the process of upgrading to 10.2-RELEASE in on of my machines.
> The base system is already updated. Although it is not strictly
> necessary (I upgrade from 10.1-RELEASE), I wanted to reinstall all
> packages as well.
>
> When I try to do it, I get the following errors:
>
> $ pkg-static upgrade -f
> Updating FreeBSD repository catalogue...
> FreeBSD repository is up-to-date.
> All repositories are up-to-date.
> Checking for upgrades (948 candidates):  90%
> db41 has no direct installation candidates, change it to db? [Y/n]: [ENTE=
R]

^^^^^
It seems I missed the note in UPDATING about db* ports.

It's fixed now.

> Checking for upgrades (948 candidates): 100%
> Processing candidates (948 candidates): 100%
> pkg-static: sqlite error while executing UPDATE packages SET name=3D?1
> WHERE name=3D?2; in file pkg_jobs.c:1658: UNIQUE constraint failed:
> packages.name
> Checking integrity...Assertion failed: (strcmp(uid, p->uid) !=3D 0),
> function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c,
> line 368.
> Child process pid=3D1106 terminated abnormally: Abort trap
> $
>
> I haven't had problems so far while installing/deinstalling packages,
> but I suppose I was just "lucky" enough so the problem didn't show up
> earlier. It seems my sqlite package database is corrupt.
>
> Any ideas on how to fix this?
>
> Thanks in advance.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2bZh%2BKBagtrT5-DTN4SmHWiy=Q4FQmpjm5jAmZM=kRzWQ>