pkgng beta 11: pkg-static: The database is outdated and opened readonly *** Error code 74

Baptiste Daroussin bapt at freebsd.org
Mon Apr 16 21:05:49 UTC 2012


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:
> > > > >
> > > > >===>   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
> > > > >
> > > > The database schema changed so pkgng try to upgrade it. But here pkgng 
> > > > does not have rights to do so. Try re-run pkgng as root.
> > > 
> > > YOu mean pkg2ng?
> > > 
> > > I get:
> > > 
> > > Registering autoconf-wrapper-20101119... pkg: The database is outdated and opened readonly
> > > pkg: The database is outdated and opened readonly
> > > failed.
> > > 
> > > and the same for all other ports.
> > > 
> > 
> > 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 determine where
> > the problem comes from.
> > 
> > regards,
> > Bapt
> 
> 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?
> 

Well normally just once you have build your port (before installing) just make
deinstall, ./work/pkg-beta11/pkg-static/pkg-static info, it should upgrade your
database.

Then make install should finish the work.

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120416/0a0fd156/attachment.pgp


More information about the freebsd-ports mailing list