From owner-freebsd-ports@FreeBSD.ORG Mon Apr 16 09:03:52 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D375106564A for ; Mon, 16 Apr 2012 09:03:52 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 054D78FC14 for ; Mon, 16 Apr 2012 09:03:52 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1SJhqh-00036a-39; Mon, 16 Apr 2012 10:03:51 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SJhqg-00063l-UL; Mon, 16 Apr 2012 10:03:50 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q3G93oSt025443; Mon, 16 Apr 2012 10:03:50 +0100 (BST) (envelope-from mexas@bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q3G93oaw025442; Mon, 16 Apr 2012 10:03:50 +0100 (BST) (envelope-from mexas@bris.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bris.ac.uk using -f Date: Mon, 16 Apr 2012 10:03:50 +0100 From: Anton Shterenlikht To: Anton Shterenlikht Message-ID: <20120416090350.GA25342@mech-cluster241.men.bris.ac.uk> References: <20120416082041.GA81466@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120416082041.GA81466@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.4.2.3i Cc: freebsd-ports@freebsd.org Subject: Re: pkgng beta 11: pkg-static: The database is outdated and opened readonly *** Error code 74 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2012 09:03:52 -0000 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? -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423