From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 14:03:56 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E061E16A420 for ; Fri, 2 Nov 2007 14:03:56 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 8EF6813C4B6 for ; Fri, 2 Nov 2007 14:03:56 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 49CBB44D0E for ; Fri, 2 Nov 2007 09:33:55 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Fri, 02 Nov 2007 09:33:55 -0400 X-Sasl-enc: ylQIkHxp8+NILV2+spd+tQTNjs5M6Z3chAO4cYFrFv8U 1194010434 Received: from [10.1.10.136] (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTP id A93D4B078 for ; Fri, 2 Nov 2007 09:33:54 -0400 (EDT) Message-Id: From: Jeffrey Goldberg To: FreeBSD_Questions FreeBSD_Questions Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Fri, 2 Nov 2007 08:33:53 -0500 X-Mailer: Apple Mail (2.912) Subject: pkgdb.db: unexpected file type or format 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: Fri, 02 Nov 2007 14:03:57 -0000 Yesterday I moved from 6.2-RELENG to 7-RELENG and everything worked fine (though I do have a few questions about mergemaster that I'll ask later). As suggested on this list, I started to rebuild all of my ports. I started with portupgrade -f '<2007-11-01 12:00' and all seemed to go well until I realized that I should have added "-- batch" to that. So I interrupted the process and restarted with portupgrade -f --batch '<2007-11-01 12:00' This has been running apparently just fine overnight, but then I noticed that after building each port, they didn't get installed because I was getting an error like /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument So I stopped things again and tried to fix pkgdb.db $ sudo pkgdb -v -F ---> Checking the package registry database /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument $ sudo file /var/db/pkg/pkgdb.db /var/db/pkg/pkgdb.db: Berkeley DB 1.85 (Hash, version 2, native byte- order) What should I do now. I suppose that my problem was with interrupting the portupgrade the first time 'round. But is there anything I can do to fix this. -j