Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2007 20:45:13 -0500
From:      Jonathan Horne <freebsd@dfwlp.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Package Database DOA
Message-ID:  <200707052045.13595.freebsd@dfwlp.com>
In-Reply-To: <1183685033.87707.4.camel@primary.jacobs.org>
References:  <1183685033.87707.4.camel@primary.jacobs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 05 July 2007 20:23:53 Mark Jacobs wrote:
> My machine froze during a portupgrade process and I was forced to
> reboot. Now my package database is corrupted. When I issue a pkg_version
> I receive hundreds of these type errors;
>
> pkg_version: the package info for package 'cups-base-1.2.11_2' is
> corrupt
>
> I attempted to delete and rebuild the database with the commands I know
> but it didn't seem to fix the problem.
>
> Can someone assist me in rebuilding the database?
>
> Mark Jacobs

try as root:

mv /var/db/pkg/pkgdb.db /var/db/pkg/pkgdb.old
pkgdb -fu

i used this method to straighten mine out just the other day.

hth,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
freebsd@dfwlp.com



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