Date: Mon, 16 Apr 2012 11:10:12 +0200 From: Julien Laffaye <jlaffaye@freebsd.org> To: Anton Shterenlikht <mexas@bristol.ac.uk> Cc: freebsd-ports@freebsd.org Subject: Re: pkgng beta 11: pkg-static: The database is outdated and opened readonly *** Error code 74 Message-ID: <4F8BE1F4.2080701@freebsd.org> In-Reply-To: <20120416090350.GA25342@mech-cluster241.men.bris.ac.uk> References: <20120416082041.GA81466@mech-cluster241.men.bris.ac.uk> <20120416090350.GA25342@mech-cluster241.men.bris.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/16/2012 11:03 AM, Anton Shterenlikht wrote: > On Mon, Apr 16, 2012 at 09:20:41AM +0100, Anton Shterenlikht wrote: >> Updating ports-mgmt/pkg to b11: >> >> ===> Installing for pkg-1.0.b11 >> ===> Generating temporary packing list >> ===> Checking if ports-mgmt/pkg already installed >> pkg-static: The database is outdated and opened readonly >> *** Error code 74 >> >> Stop in /usr/ports/ports-mgmt/pkg. >> >> Please advise > Looking at the bit which issued the error: > > # grep -C3 "The database is outdated" ./work/pkg-1.0-beta11/libpkg/pkgdb.c > > while (db_version< DBVERSION) { > if (!sqlite3_db_readonly(db->sqlite, "main")) { > pkg_emit_error("The database is outdated and opened readonly"); > return (EPKG_FATAL); > } > db_version++; > # > > I decided to update sqlite3, only to discover > that I can no longer do it: > > # make -C /usr/ports/databases/sqlite3 > /usr/local/sbin/pkg: not found > ===> License unknown accepted by the user > ===> Found saved configuration for sqlite3-3.7.11 > ===> sqlite3-3.7.11 depends on file: /usr/local/sbin/pkg - not found > ===> Verifying install for /usr/local/sbin/pkg in /usr/ports/ports-mgmt/pkg > ===> Installing for pkg-1.0.b11 > ===> Generating temporary packing list > ===> Checking if ports-mgmt/pkg already installed > pkg-static: The database is outdated and opened readonly > *** Error code 74 > > Stop in /usr/ports/ports-mgmt/pkg. > *** Error code 1 > > > How can I recover from this? > > Is it a good idea to switch to > the old tools for recovery? > pkgng does not use the ports's sqlite but its own version. Updating the sqlite port has no effect on pkgng.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F8BE1F4.2080701>