Date: Mon, 12 Nov 2007 08:42:27 -0500 From: "J. W. Ballantine" <jwb@homer.att.com> To: matti k <matti.k@bigpond.net.au> Cc: freebsd-questions@freebsd.org Subject: Re: pkgdb failure Message-ID: <200711121342.IAA04032@hera.homer.att.com> In-Reply-To: Message from matti k <matti.k@bigpond.net.au> of "Sat, 10 Nov 2007 10:24:14 %2B1100." <20071110102414.25b66271@platypus.freebsd.home>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes, seems you need to rebuild ruby, for safety I also rebuilt ruby-bdb and portupgrade. I then moved /var/db/pkg/pkgdb.db and ran pkgdb -fu. Then it was safe to run portupgrade. This is probably overkill, but it worked for me. Jim ---------- In Response to your message ------------- > Date: Sat, 10 Nov 2007 10:24:14 +1100 > To: "J. W. Ballantine" <jwb@homer.att.com> > From: matti k <matti.k@bigpond.net.au> > Subject: Re: pkgdb failure > > On Fri, 09 Nov 2007 08:06:54 -0500 > "J. W. Ballantine" <jwb@homer.att.com> wrote: > > > After upgrading from 6-STABLE to 7-RELEASE, I tried to rebuild > > all the packages from portupgrade -af I started getting the following > > error messages. The first once, the second multiple times, even > > after I moved the pkgdb.db and did a pkgdb -fu. > > > > [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid > > argument] [Updating the portsdb <format:bdb_btree> in /usr/ports . > > .. - 17746 port entries found /usr/ports/INDEX-7.db: unexpected file > > type or format -- Invalid argument: Cannot update the portsdb! > > (/usr/ports/INDEX-7.db)] > > > > > > /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid > > argument > > > > Any ideas on what is causing this? > > I got this as well, after portupgrade tried to register installation of > new ruby version. A pkgdb -F seemed to correct it and i continued on > with portupgrade with no more errors. > > Regards, > Matti >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711121342.IAA04032>
