Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Aug 2013 18:00:16 -0700 (PDT)
From:      "Thomas Mueller" <mueller6724@bellsouth.net>
To:        freebsd-ports@freebsd.org
Subject:   [SOLVED] libpkg, sqlite and database problems prevent building any packages
Message-ID:  <17955.77948.bm@smtp106.sbc.mail.bf1.yahoo.com>

next in thread | raw e-mail | index | archive | help
I solved the impasse by moving /var/db/pkg/local.sqlite to another place where it wouldn't be found, in this case /var/tmp .

Then I went into $PORTSDIR/ports-mgmt/pkg and ran
make deinstall install
to update pkg.

That produced a new, small, /var/db/pkg/local.sqlite which I renamed to local.sqlite.2 in preparation for restoring the older local.sqlite .

Then, with the new pkg installed but the ghost of the old pkg remaining in local.sqlite, I ran, again, from $PORTSDIR/ports-mgmt/pkg
make deinstall install
to put local.sqlite in sync with the installation of updated pkg.

I think the pkg database is restored now.

At first, with sqlite3 not listed as a dependency of pkg, I wouldn't have realized what needed fixing.

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17955.77948.bm>