From owner-freebsd-stable@FreeBSD.ORG Fri Mar 2 14:55:50 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6AB716A401 for ; Fri, 2 Mar 2007 14:55:50 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail2.secureworks.net (mail2.secureworks.net [65.114.32.154]) by mx1.freebsd.org (Postfix) with ESMTP id B1F6E13C461 for ; Fri, 2 Mar 2007 14:55:50 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from localhost (localhost [127.0.0.1]) by mail2.secureworks.net (Postfix) with ESMTP id 1CD931716A; Fri, 2 Mar 2007 09:55:50 -0500 (EST) X-Virus-Scanned: amavisd-new at secureworks.net Received: from mail2.secureworks.net ([127.0.0.1]) by localhost (mail2.secureworks.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GUe5zTXYOnSF; Fri, 2 Mar 2007 09:55:49 -0500 (EST) Received: from [192.168.23.35] (mole1.secureworks.net [63.239.86.3]) by mail2.secureworks.net (Postfix) with ESMTP id DF5F917033; Fri, 2 Mar 2007 09:55:49 -0500 (EST) Message-ID: <45E83AF5.2010605@jellydonut.org> Date: Fri, 02 Mar 2007 09:55:49 -0500 From: Michael Proto User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.9) Gecko/20070113 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: phillip@philderbeast.com References: <45E7D3E1.5090408@philderbeast.com> In-Reply-To: <45E7D3E1.5090408@philderbeast.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Problem with portupgrade X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2007 14:55:50 -0000 Phillip Ledger wrote: > i have been trying to get portupgrade working, however everything i try > to run it im getting an error with the portsdb. now i have tryed to > rebuild it as requested initaly by portupgrade but im still getting an > error > > portupgrade -aRr > [missing key: categories] [Updating the portsdb in > /var/tmp ... - 16413 port entries found > .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000.... > ..... done] > missing key: categories: Cannot read the portsdb! > /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database > file error (PortsDB::DBError) > from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port' > from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in > `all_depends_list' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build' > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!' > from /usr/local/sbin/portupgrade:721:in `main' > from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize' > from /usr/local/sbin/portupgrade:220:in `new' > from /usr/local/sbin/portupgrade:220:in `main' > from /usr/local/sbin/portupgrade:2084 > > > any idea whats causeing the issue or how to fix it? Try removing /usr/ports/INDEX-6.db and running "portsdb -u", which should rebuild it from your existing /usr/ports/INDEX-6 file. (if you're using FreeBSD 5 it would be INDEX-5 above). -Proto