From owner-freebsd-questions@FreeBSD.ORG Fri Jul 6 01:45:17 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2DC2416A400 for ; Fri, 6 Jul 2007 01:45:17 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id ED9A113C448 for ; Fri, 6 Jul 2007 01:45:16 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l661jEJn044407 for ; Thu, 5 Jul 2007 20:45:14 -0500 (CDT) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Thu, 5 Jul 2007 20:45:13 -0500 User-Agent: KMail/1.9.6 References: <1183685033.87707.4.camel@primary.jacobs.org> In-Reply-To: <1183685033.87707.4.camel@primary.jacobs.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707052045.13595.freebsd@dfwlp.com> X-Spam-Status: No, score=-4.0 required=3.6 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on pollux.dfwlp.com Subject: Re: Package Database DOA X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2007 01:45:17 -0000 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