Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Aug 2006 09:41:35 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        freebsd-questions@freebsd.org
Cc:        , af300wsm@gmail.com
Subject:   Re: Interesting problem with packages, how to fix if corrupt
Message-ID:  <448xm3e1v4.fsf@be-well.ilk.org>
In-Reply-To: <340a29540608031635s59647a6clf06731410095c1b0@mail.gmail.com> (Andrew Falanga's message of "Thu, 3 Aug 2006 23:35:51 %2B0000")
References:  <340a29540608031635s59647a6clf06731410095c1b0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrew Falanga" <af300wsm@gmail.com> writes:

> If I do pkg_info with nothing else, all looks well.  However, if I do
> "pkg_info | grep <package_name>"  (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.



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