From owner-freebsd-questions@FreeBSD.ORG Thu Mar 31 04:42:23 2005 Return-Path: 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 B3DD416A4CE for ; Thu, 31 Mar 2005 04:42:23 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DC6E43D39 for ; Thu, 31 Mar 2005 04:42:23 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IE70074M92MRDE0@vms044.mailsrvcs.net> for freebsd-questions@freebsd.org; Wed, 30 Mar 2005 22:42:23 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id 658182CE747; Wed, 30 Mar 2005 20:42:22 -0800 (PST) Date: Wed, 30 Mar 2005 20:42:21 -0800 From: "Michael C. Shultz" In-reply-to: <004601c535a9$e707a430$6402a8c0@kevin> To: freebsd-questions@freebsd.org Message-id: <200503302042.21595.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <004601c535a9$e707a430$6402a8c0@kevin> User-Agent: KMail/1.8 Subject: Re: Packages Corrupted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2005 04:42:23 -0000 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