Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 02:02:43 +0200
From:      Morsal Rodbay <morsal@swipnet.se>
To:        GERARDO ENRIQUE PAREDES MANCIA <g.paredes@unitec.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: fixing a fscked pkg db
Message-ID:  <20020825000243.GT15865@mosse.dyndns.org>
In-Reply-To: <1918dc0e169ee9c0.169ee9c01918dc0e@unitec.edu>
References:  <1918dc0e169ee9c0.169ee9c01918dc0e@unitec.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <format:bdb1_btree> in /var/db/pkg ... - 314 packages found  
> (-31 +87) (...)Invalid argument: Cannot update the pkgdb!]  
> dhcp-93-1# pkgdb -u  
> [Updating the pkgdb <format:bdb1_btree> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020825000243.GT15865>