From owner-freebsd-questions Sat Aug 24 17:24:50 2002 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 C5B6B37B400 for ; Sat, 24 Aug 2002 17:24:47 -0700 (PDT) Received: from zigman.dyndns.org (korpen-86-208.ip-pluggen.com [212.181.86.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4290443E65 for ; Sat, 24 Aug 2002 17:24:47 -0700 (PDT) (envelope-from mr@zigman.dyndns.org) Received: by zigman.dyndns.org (Postfix, from userid 1001) id 0A0371C21; Sun, 25 Aug 2002 02:02:44 +0200 (CEST) Date: Sun, 25 Aug 2002 02:02:43 +0200 From: Morsal Rodbay To: GERARDO ENRIQUE PAREDES MANCIA Cc: freebsd-questions@freebsd.org Subject: Re: fixing a fscked pkg db Message-ID: <20020825000243.GT15865@mosse.dyndns.org> Reply-To: Morsal Rodbay References: <1918dc0e169ee9c0.169ee9c01918dc0e@unitec.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1918dc0e169ee9c0.169ee9c01918dc0e@unitec.edu> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD/x86 [up 67 days, 3:28, 1 user, load averages: 0.00, 0.00, 0.00] X-Return-Path: morsal@swipnet.se Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hey rebuild your database using this command: pkgdb -fu HTH, Mosse On Fri, Aug 23, 2002 at 09:21:06PM -0600, GERARDO ENRIQUE PAREDES MANCIA wrote: > hi guys, > > i always have been careful to pkgdb -u and pkgdb -F after every install, but > since like two months the portupgrade tools have stopped working, as an example: > > dhcp-93-1# pkgdb -F > [Updating the pkgdb in /var/db/pkg ... - 314 packages found > (-31 +87) (...)Invalid argument: Cannot update the pkgdb!] > dhcp-93-1# pkgdb -u > [Updating the pkgdb in /var/db/pkg ... - 314 packages found > (-31 +87) (...)Invalid argument: Cannot update the pkgdb!] > dhcp-93-1# portversion | more > > this happen just when trying to portupgrade or using pkgdb, usint another port > tools like, portsversion half worked until dependencia problems crawled in. > > normal pkg tools like pkg_info or pkg_version works flawlessly. > > does anyone have a good idea how to fix it? would be possible to reconstruct > /var/pkg/db from scratch if it was the problem? or i am fux0red? > > Any help will be appreciated? > > Regards, > Gerardo > > P.S.: and i don't want to reinstall everything To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message