Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2002 21:43:35 -0800
From:      Andrew Stuart <elitetek@tekrealm.net>
To:        Nick Jennings <nkj@namodn.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: port utils not working (ruby memory error)
Message-ID:  <20021115054335.GB69109@freebsd.tekrealm.net>
In-Reply-To: <20021114174948.C13282@namodn.com>
References:  <20021114174948.C13282@namodn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Nov 2002 at 17:49:48 -0800, Nick Jennings wrote:
> su-2.05b# portversion -v
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 260 packages found (-2 +3) (...)[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 260 packages found (-2 +3) (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:224:in `origin': Cannot allocate memory: Cannot update the pkgdb!] (PkgDB::DBError)
>         from /usr/local/lib/ruby/site_ruby/1.6/pkginfo.rb:178:in `origin'
>         from /usr/local/sbin/portversion:301:in `check_pkgs'
>         from /usr/local/sbin/portversion:300:in `each'
>         from /usr/local/sbin/portversion:300:in `check_pkgs'
>         from /usr/local/sbin/portversion:260:in `main'
>         from /usr/local/sbin/portversion:77:in `initialize'
>         from /usr/local/sbin/portversion:77:in `new'
>         from /usr/local/sbin/portversion:77:in `main'
>         from /usr/local/sbin/portversion:347
> su-2.05b#
> 
> Same stuff happens when I use any of the portupgrade applications. I have
> tried going into ports/lang/ruby and doing a 
> 'make deinstall && make clean && make install' same with 
> ports/sysutils/portupgrade but nothing worked.
> 
> Any ideas how I can get my system back to normal? I have serious misgivings
> about every trying to update/upgrade my ports & installed packages again
> :(
> 
> How am I to know when things are broken or stable?
> 
> - Nick Jennings
> 

Unfortantly from what i can tell, this is a corrupt pkgdb.db
(/var/db/pkg) the only way i know of to fix this is rm/mv pkgdb.db
and run pkgdb -F to create a new one. I have had this happen ALOT
expecially when running multiple portupgrades at once.

YMMV

-- 
Andrew Stuart
http://www.tekrealm.net


"Life is like a buffet; it's not good but there's plenty of it."

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?20021115054335.GB69109>