From owner-freebsd-questions@FreeBSD.ORG Thu Mar 31 04:53: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 D1AA516A4CE for ; Thu, 31 Mar 2005 04:53:23 +0000 (GMT) Received: from vps.vocaboly.com (vps.vocaboly.com [207.58.137.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FCD643D1D for ; Thu, 31 Mar 2005 04:53:23 +0000 (GMT) (envelope-from newbie@freebsdblog.org) Received: from p54877ac9.dip.t-dialin.net ([84.135.122.201] helo=kevin) by vps.vocaboly.com with esmtpa (Exim 4.43) id 1DGrgH-0006Ld-RG; Wed, 30 Mar 2005 23:53:22 -0500 Message-ID: <005b01c535ad$da87bbb0$6402a8c0@kevin> From: "KP" To: "Michael C. Shultz" , References: <004601c535a9$e707a430$6402a8c0@kevin> <200503302042.21595.ringworm01@gmail.com> Date: Thu, 31 Mar 2005 06:55:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.vocaboly.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - freebsdblog.org X-Source: X-Source-Args: X-Source-Dir: 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:53:24 -0000 ----- Original Message ----- From: "Michael C. Shultz" To: Sent: Thursday, March 31, 2005 6:42 AM Subject: Re: Packages Corrupted > 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 Thanks for your reply, Mike. /var/db/pkg looks good # ls apache-1.3.33 mysql-client-4.0.21 php4-pcre-4.3.9 pkgdb.db bison-1.75_2 perl-5.8.5 php4-posix-4.3.9 portupgrade-20041226_1 cvsup-without-gui-16.1h php4-bz2-4.3.9 php4-session-4.3.9 ruby-1.8.2_3 expat-1.95.8 php4-ctype-4.3.9 php4-tokenizer-4.3.9 ruby18-bdb1-0.2.2 gettext-0.13.1_1 php4-extensions-1.0 php4-xml-4.3.9 unixbench-4.1.0 libiconv-1.9.2_1 php4-mysql-4.3.9 php4-zlib-4.3.9 m4-1.4.1 php4-overload-4.3.9 pkg But If I try to delete a package, it will go to the error message in the end. # pkg_delete php4-xml-4.3.9 pkg_delete: package 'php4-xml-4.3.9' is required by these other packages and may not be deinstalled: php4-extensions-1.0 # pkg_delete php4-extensions-1.0 pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt pkg_delete: the package info for package 'pkg' is corrupt