From owner-freebsd-questions@FreeBSD.ORG Sat Aug 5 13:41:49 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0238F16A4E0 for ; Sat, 5 Aug 2006 13:41:49 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A88A643D6D for ; Sat, 5 Aug 2006 13:41:41 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 16325 invoked from network); 5 Aug 2006 13:41:36 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 5 Aug 2006 13:41:36 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 9E8B92842A; Sat, 5 Aug 2006 09:41:35 -0400 (EDT) To: freebsd-questions@freebsd.org References: <340a29540608031635s59647a6clf06731410095c1b0@mail.gmail.com> From: Lowell Gilbert Date: Sat, 05 Aug 2006 09:41:35 -0400 In-Reply-To: <340a29540608031635s59647a6clf06731410095c1b0@mail.gmail.com> (Andrew Falanga's message of "Thu, 3 Aug 2006 23:35:51 +0000") Message-ID: <448xm3e1v4.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: , af300wsm@gmail.com Subject: Re: Interesting problem with packages, how to fix if corrupt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2006 13:41:49 -0000 "Andrew Falanga" writes: > If I do pkg_info with nothing else, all looks well. However, if I do > "pkg_info | grep " (which I do frequently so I don't > have to read through the entire list) I get these two errors: > > pkg_info: the package info for package 'portupgrade-2.0.1_1,1' is corrupt > pkg_info: the package info for package 'ruby18-bdb4-0.5.7' is corrupt > > How would I go about fixing these packages, or at least fixing the > package information? That's pretty weird, and I have no idea what could cause it, so advice is going to be tentative. [Are you *sure* that the errors come up when piping the output into grep, or are you specifying the package name as a parameter to pkg_info?] Try piping into less(1) instead of grep, and if you have a reasonable shell, separate out the stderr from stdout. That may give a clue what's going on. Or try removing both packages, cleaning all trace of them, and reinstall them next time you want them.