From owner-freebsd-questions@FreeBSD.ORG Sat Apr 7 06:33:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9038416A401 for ; Sat, 7 Apr 2007 06:33:12 +0000 (UTC) (envelope-from ABabiy@shaw.ca) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 704A413C457 for ; Sat, 7 Apr 2007 06:33:12 +0000 (UTC) (envelope-from ABabiy@shaw.ca) Received: from pd3mr1so.prod.shaw.ca (pd3mr1so-qfe3.prod.shaw.ca [10.0.141.177]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JG4000UX7JDF350@l-daemon> for freebsd-questions@freebsd.org; Sat, 07 Apr 2007 00:33:13 -0600 (MDT) Received: from pn2ml1so.prod.shaw.ca ([10.0.121.145]) by pd3mr1so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JG4009SI7JDTG40@pd3mr1so.prod.shaw.ca> for freebsd-questions@freebsd.org; Sat, 07 Apr 2007 00:33:13 -0600 (MDT) Received: from s01060014bf5ee711.vs.shawcable.net ([70.71.71.220]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JG400JY67JCS551@l-daemon> for freebsd-questions@freebsd.org; Sat, 07 Apr 2007 00:33:12 -0600 (MDT) Date: Fri, 06 Apr 2007 23:33:10 -0700 From: Andriy Babiy In-reply-to: <20070406205027.E6A1B16A40B@hub.freebsd.org> To: freebsd-questions@freebsd.org Message-id: <200704062333.11196.ABabiy@shaw.ca> Organization: home MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Content-disposition: inline References: <20070406205027.E6A1B16A40B@hub.freebsd.org> User-Agent: KMail/1.9.6 Cc: Ghirai Subject: Re: Problem with portupgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 06:33:12 -0000 On April 6, 2007, freebsd-questions-request@freebsd.org wrote: > >> deimos# portupgrade -PR libmpeg2 > >> [Updating the portsdb >format:bdb_btree> in /usr/ports ... - 16851 > >> port entries found > >> {lines cut} ..... done] > >> [missing key: categories: Cannot read the portsdb! > >> database file error > >> > >> {following some ruby errors regarding the fact that the db can't be > >> read?!} > > > > Try removing (or moving so you have a backup) your > > /var/db/pkg/pkgdb.db file, then running pkgdb -u to update/create it. > > > > Josh > > I did that, it recreated the file w/o errors, but i get the same error > message. Have you read the note of 20070205 in /usr/src/UPDATING? It looks you're running the old version. Check the details in the note, remove portupgrade and install it from the new location. Andriy