From owner-freebsd-questions@FreeBSD.ORG Wed Apr 28 00:18:15 2004 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 0DE4516A4CE for ; Wed, 28 Apr 2004 00:18:15 -0700 (PDT) Received: from axis.jeack.com.au (axis.jeack.com.au [203.24.125.2]) by mx1.FreeBSD.org (Postfix) with SMTP id F216243D45 for ; Wed, 28 Apr 2004 00:18:13 -0700 (PDT) (envelope-from joordens@jeack.com.au) Received: (qmail 61146 invoked by uid 88); 28 Apr 2004 07:18:11 -0000 Received: from mars.jeack.com.au (HELO jeack.com.au) (203.24.125.10) by axis.jeack.com.au (qpsmtpd/0.26) with SMTP; Wed, 28 Apr 2004 17:18:11 +1000 From: "Ron & Ariane Joordens" Sender: joordens@jeack.com.au To: freebsd-questions@FreeBSD.org Date: Wed, 28 Apr 2004 17:18:11 -1000 X-Mailer: DMailWeb Web to Mail Gateway 2.8c, http://netwinsite.com/top_mail.htm Message-id: <408f5ab3.9658.0@jeack.com.au> X-User-Info: 203.29.219.245 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/ Subject: Corrupt Package Database? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: joordens@jeack.com.au List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 07:18:15 -0000 Hello FreeBSDers, I have a problem that is way beyond my extremely limited knowledge of FreeBSD. I know, that's not hard to do :-) I was using portupgrade to upgrade KDE to 3.2.1 one part at a time. ie. KDEbase, then KDEnetwork, etc. After each successful upgrade, I do portverion to check what the next KDE port is. Each time it would prompt me to do a pkgdb -F which in turn would indicate a stale dependancy openSSL and suggest a new dependancy openLDAP to which of course I would say no. The last time however instead of saying no to creating a new dependancy and then deleting the openSSL dependancy, I replied 'a' for all (default was no) and it did not ask me to create a new dependancy. Since then I have been unable to upgrade any port. For instance portupgrade -Rr zsh produces the following error message ===> Checking if shells/zsh already installed pkg_info: /var/db/pkg/gedit2-2.4.1_1/+CONTENTS: No such file or directory *** Error code 1 Stop in /usr/ports/shells/zsh. *** Error code 1 Stop in /usr/ports/shells/zsh. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade22071.0 make reinstall egrep: /var/db/pkg/gedit2-2.4.1_1/+CONTENTS: No such file or directory egrep: /var/db/pkg/zsh-4.0.9/+CONTENTS: No such file or directory ---> Restoring the old version pkg_add: /var/db/pkg/gedit2-2.4.1_1/+CONTENTS: No such file or directory Updating /etc/shells ** Fix the installation problem and try again. [Updating the pkgdb in /var/db/pkg ... - 241 packages found (-0 +1) . done] ** The following packages were not installed or upgraded (*:skipped / !:failed) ! shells/zsh (zsh-4.0.9) (install error) I checked the /var/db/pkg directory and just as reported gedit2 and koffice do not have +CONTENTS files. (They are the only ones without this file) I have searched the web for a solution to this but the only thing I found that wasn't highly technical was a post in German that seemed to indicate a cvsup. This I did successfully, but when I run portsdb -Uu I get the following error message: freebsd# portsdb -Uu Updating the ports index ... Generating INDEX.tmp - please wait..===> chinese/openoffice-zh_CN failed: "Makefile", line 17: Could not find /usr/ports/chinese/openoffice-zh_CN/../../editors/openoffice/Makefile make: fatal errors encountered -- cannot continue *** Error code 1 1 error ******************************************************************** Before reporting this error, verify that you are running a supported version of FreeBSD (see http://www.FreeBSD.org/ports/) and that you have a complete and up-to-date ports collection. If so, then report the failure to ports@FreeBSD.org together with relevant details of your ports configuration (including FreeBSD version, environment and /etc/make.conf settings).***************************************************************** *** *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. failed to generate INDEX! portsdb: index generation error Does anyone know how to rebuild the +CONTENTS files? Are the two error message related? TIA Ron http://www.jeack.com.au