From owner-freebsd-ports@FreeBSD.ORG Mon Apr 16 21:05:48 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 E4377106566C; Mon, 16 Apr 2012 21:05:48 +0000 (UTC) (envelope-from bapt@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A77338FC0C; Mon, 16 Apr 2012 21:05:48 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3GL5muT002981; Mon, 16 Apr 2012 21:05:48 GMT (envelope-from bapt@freebsd.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3GL5m8T002980; Mon, 16 Apr 2012 21:05:48 GMT (envelope-from bapt@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@freebsd.org using -f Date: Mon, 16 Apr 2012 23:05:44 +0200 From: Baptiste Daroussin To: Anton Shterenlikht Message-ID: <20120416210544.GW1569@azathoth.lan> References: <20120416082041.GA81466@mech-cluster241.men.bris.ac.uk> <4F8BE011.2090607@freebsd.org> <20120416092249.GA25523@mech-cluster241.men.bris.ac.uk> <20120416151535.GR1569@azathoth.lan> <20120416152508.GA25007@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nqu5fpgjE+BQlEdo" Content-Disposition: inline In-Reply-To: <20120416152508.GA25007@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org, Julien Laffaye 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 21:05:49 -0000 --nqu5fpgjE+BQlEdo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 16, 2012 at 04:25:08PM +0100, Anton Shterenlikht wrote: > On Mon, Apr 16, 2012 at 05:15:35PM +0200, Baptiste Daroussin wrote: > > On Mon, Apr 16, 2012 at 10:22:49AM +0100, Anton Shterenlikht wrote: > > > On Mon, Apr 16, 2012 at 11:02:09AM +0200, Julien Laffaye wrote: > > > > On 04/16/2012 10:20 AM, Anton Shterenlikht wrote: > > > > >Updating ports-mgmt/pkg to b11: > > > > > > > > > >=3D=3D=3D> Installing for pkg-1.0.b11 > > > > >=3D=3D=3D> Generating temporary packing list > > > > >=3D=3D=3D> 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 > > > > > > > > > The database schema changed so pkgng try to upgrade it. But here pk= gng=20 > > > > does not have rights to do so. Try re-run pkgng as root. > > >=20 > > > YOu mean pkg2ng? > > >=20 > > > I get: > > >=20 > > > Registering autoconf-wrapper-20101119... pkg: The database is outdate= d and opened readonly > > > pkg: The database is outdated and opened readonly > > > failed. > > >=20 > > > and the same for all other ports. > > >=20 > >=20 > > Well you should be upgrading from beta8 it is known there are problems = for > > upgrading from beta8 to newer version, but it is really hard to determi= ne where > > the problem comes from. > >=20 > > regards, > > Bapt >=20 > Anyway, I just need to recover somehow. > Which database are we talking about, > is it /var/db/pkg? Will it help if > I remove it, and start from scratch? >=20 Well normally just once you have build your port (before installing) just m= ake deinstall, ./work/pkg-beta11/pkg-static/pkg-static info, it should upgrade = your database. Then make install should finish the work. regards, Bapt --nqu5fpgjE+BQlEdo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+MiagACgkQ8kTtMUmk6ExbywCcDvd1o3hPWuscoijoPloMvAkA lL0AoIdZH4tA8cTezvYadoXJSUmJkaaY =wwl5 -----END PGP SIGNATURE----- --nqu5fpgjE+BQlEdo--