Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2005 20:42:21 -0800
From:      "Michael C. Shultz" <ringworm01@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Packages Corrupted
Message-ID:  <200503302042.21595.ringworm01@gmail.com>
In-Reply-To: <004601c535a9$e707a430$6402a8c0@kevin>
References:  <c6ef380c0503290643698b1320@mail.gmail.com> <c6ef380c05032906585dffa9f2@mail.gmail.com> <004601c535a9$e707a430$6402a8c0@kevin>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 30 March 2005 08:27 pm, KP wrote:
> I installed apache, php and mysql with pkg_add, unfortunately I
> messed up the directory /var/db during moving and linking. Now when I
> pkg_delete or pkg_add any php related packages, always got the error
> message: "the package info for package 'pkg' is corrupt", tried
> "pkgdb -F" and it didn't work. This is a new server running 5.3
> release, just installed serveral packages, but with the error
> message, I feel the system totally corrupted. Is it possible to fix
> this? Many thanks in advance!
> Kevin

If /var/db is "messed up" there is no way to know which installed
package is associated with which port.  If you don't see any package 
names listed under /var/db/pkg they are as good as not being installed
as far as the ports system is concerned. You should never fool with
anything under /var/db/pkg, always leave that to the ports system to 
handle. What is the status of  /var/db/pkg now? Are there any package
names listed in it?

-Mike





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