Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2006 13:45:49 -0800
From:      Beech Rintoul <beech@mangohealth.org>
To:        freebsd-questions@freebsd.org
Cc:        Arno Schleich <aschleichmd@hotmail.com>
Subject:   Re: portupgrade
Message-ID:  <200605061346.06072.beech@mangohealth.org>
In-Reply-To: <BAY112-F1475C4BDFCC51980ABA794B4AA0@phx.gbl>
References:  <BAY112-F1475C4BDFCC51980ABA794B4AA0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1679086.ORSeqtDbOE
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Saturday 06 May 2006 13:28, Arno Schleich wrote:
> Dear all,
>
> I have observed the following behavior in portupgrade:
>
> The operation
>
> portugrade -a
>
> results in a repetitive rebuild of the package database whenever the
> database is accessed.
>
> [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... Inappropriate fi=
le
> type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb
> <format:dbm_hash> in /var/db/pkg ... - 435 packages found (-0 +435)
> .........................................................................=
=2E.
>..........................................................................=
=2E.
>..........................................................................=
=2E.
>..........................................................................=
=2E.
>..........................................................................=
=2E.
>........................................................ done]
> --->  Backing up the old version
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... Failed
> `Inappropriate file type or format'; rebuild needed] [Rebuilding the pkgdb
> <format:bdb1_btree> in /var/db/pkg ... - 435 packages found (-0 +435)
> .........................................................................=
=2E.
>..........................................................................=
=2E.
>..........................................................................=
=2E.
>..........................................................................=
=2E.
>..........................................................................=
=2E.
>........................................................ done]
> --->  Uninstalling the old version
> [Updating the pkgdb <format:dbm_hash> in /var/db/pkg ... Inappropriate fi=
le
> type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb
> <format:dbm_hash> in /var/db/pkg ... - 435 packages found (-0 +435)
> .........................................................................=
=2E.
>...........................
>
>
> Is this a bug or a feature ?
>
> What can be done to suppress this behavior of portupgrade -a ?
>
> Thanks, Arno

Sounds like your pkgdb is corrupt. Try doing "pkgdb -fu" (without the quote=
s),=20
if that doesn't work rename or rm /var/db/pkg/pkgdb.db and run the command=
=20
again to build a new pkgdb.

Beech



=2D-=20

=2D------------------------------------------------------------------------=
=2D-------------
Beech Rintoul - Sys. Administrator - beech@mangohealth.org
/"\   ASCII Ribbon Campaign  | Mangohealth
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - XanGo - http://www.mangohealth.org
=2D------------------------------------------------------------------------=
=2D-------------












--nextPart1679086.ORSeqtDbOE
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQBEXRkd2TFLCHYGSF0RAgaaAJ0WCySwVinmgLX62tsuWdKfk4T7+QCgg0on
llTA4nbW19ZfNOyNiw30D2g=
=7A97
-----END PGP SIGNATURE-----

--nextPart1679086.ORSeqtDbOE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605061346.06072.beech>