From owner-freebsd-questions Fri Aug 23 12:23:31 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 BBD9D37B400 for ; Fri, 23 Aug 2002 12:23:27 -0700 (PDT) Received: from mail.unitec.edu (mail.unitec.edu [216.72.84.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id A95F743E42 for ; Fri, 23 Aug 2002 12:23:24 -0700 (PDT) (envelope-from g.paredes@unitec.edu) Received: from unitec.edu ([127.0.0.1]) by mail.unitec.edu (Netscape Messaging Server 4.15) with ESMTP id H1B9L200.RQN for ; Fri, 23 Aug 2002 13:17:26 -0600 From: "GERARDO ENRIQUE PAREDES MANCIA" To: freebsd-questions@freebsd.org Message-ID: <31641bb81dc6c609.1dc6c60931641bb8@unitec.edu> Date: Fri, 23 Aug 2002 13:17:26 -0600 X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: en Subject: how to fix a wronged pkg db X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 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