From owner-freebsd-stable@FreeBSD.ORG Fri Mar 2 20:39:16 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 1A2CF16A403 for ; Fri, 2 Mar 2007 20:39:16 +0000 (UTC) (envelope-from datahead4@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id CFC3E13C467 for ; Fri, 2 Mar 2007 20:39:15 +0000 (UTC) (envelope-from datahead4@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so1351269wri for ; Fri, 02 Mar 2007 12:39:15 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RlrD7F/Cy89J9aYeKhaYTHbnFI06Kvo4u82++cNwVD/lMj/fVf7Zcus1xl8+oHRHYwVJFznTPA1lAF5QML6pkWn+DECeU0VidGncLaEbJijdKGEeH37p9ojW2HhAwKVTgNbStu0B2F6Golq4USO/RGL7f5S37TZDGzMOrwotsZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uIn0Pls4cTZWCZHI0GC4Q+R+b/GmuWDcbP0P857wtBioeSYEy/Di8eHxASkH0zF6Ya6OGrR/eOwPZfEM8t7+fKlGrCU7eWaRbTGev3SJaKBwaKvFH8g+YdzyJBdONY38P1PTZPYqGBrRMGYKR7c6OnRLstmbbSLjJ0lFTweRR2I= Received: by 10.114.156.1 with SMTP id d1mr358816wae.1172866493803; Fri, 02 Mar 2007 12:14:53 -0800 (PST) Received: by 10.114.211.5 with HTTP; Fri, 2 Mar 2007 12:14:53 -0800 (PST) Message-ID: Date: Fri, 2 Mar 2007 14:14:53 -0600 From: Matt To: "Michael Proto" In-Reply-To: <45E83AF5.2010605@jellydonut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45E7D3E1.5090408@philderbeast.com> <45E83AF5.2010605@jellydonut.org> 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 20:39:16 -0000 On 3/2/07, Michael Proto wrote: > 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 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > >From /usr/ports/UPDATING: 20070102: AFFECTS: users of sysutils/portupgrade AUTHOR: sem@FreeBSD.org If you have a problem with upgrading the tools from version 2.2.1 and less, remove the package with pkg_delete portupgrade\* command and reinstall it from scratch. Remove /usr/ports/INDEX*.db and run portsdb -u.