From owner-freebsd-questions Tue Mar 18 7:56:45 2003 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 C430537B401 for ; Tue, 18 Mar 2003 07:56:43 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 49D6443F3F for ; Tue, 18 Mar 2003 07:56:42 -0800 (PST) (envelope-from mwm-dated-1048435001.8a3948@mired.org) Received: (qmail 76800 invoked from network); 18 Mar 2003 15:56:41 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 18 Mar 2003 15:56:41 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15991.16824.813784.495793@guru.mired.org> Date: Tue, 18 Mar 2003 09:56:40 -0600 To: Brian McCann Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Stuck with pkg_info In-Reply-To: <000601c2ed05$92be0020$2f811581@garfield> References: <000601c2ed05$92be0020$2f811581@garfield> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.71 (Hoop, Jr.) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In <000601c2ed05$92be0020$2f811581@garfield>, Brian McCann typed: > It's been a bad week. Here's today's problem. I just tried running > pkg_info after updating my ports collection and I get the error > "pkg_info: read_plist: bad command '@ckmment > MD5:e612f324240eea2f88d666ee1325ea7c' ". I tried removing the pkgdb.db > file in /var/db/pkg and rebuilding it using pkgdb -u, but that didn't > fix it. Anyone have any other suggestions? pkgdb.db is created and maintated by the portupgrade tools. pkg_info isn't part of those, and doesn't use pkgdb.db. Your problem is that one or more packages has a typo in the +CONTENTS, saying @ckmment instead of @comment. You can find the this by doing: # cd /var/db/pkg # grep -l ckmment */+CONTENTS That will list the broken file. You can then fix it with ed, vi or your favorite editor. If lots of files have that problem, then you have a serious problem, because one or more of the tools you are using to install ports is probably corrupt. The fix to that is probably to upgrade your system. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message