Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2002 13:00:56 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        questions@FreeBSD.ORG
Subject:   Re: What happened to my ports system?
Message-ID:  <20021122130056.GA30135@happy-idiot-talk.infracaninophi>
In-Reply-To: <20021122141156.331336e8.johann@broadpark.no>
References:  <20021122141156.331336e8.johann@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 22, 2002 at 02:11:56PM +0100, Janine C.Buorditez wrote:

> This message comes no matter what I do with portupgrade:
> 
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 230 packages found (-7 +1) (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:375: [BUG] Segmentation fault
> ruby 1.6.7 (2002-05-23) [i386-freebsd4]
> Abort (core dumped)

First of all, try re-cvsup'ing to make sure you didn't accidentally
get some half committed set of files.

Then back up all the various databases etc. that the ports system and
portupgrade uses, and recreate them from scratch:

    cd /usr/ports
    mv INDEX INDEX.0
    mv INDEV.db INDEX.db.0
    make index
    portsdb -u

Nb. there was a bug quite recently found in portsdb which would
corrupt the INDEX file it generated.  Should be fixed soon, if it
hasn't already, but using 'make index' rather than 'portsdb -U' is a
good work around.  This will generate some error messages, especially
if you refuse parts of the ports tree, but those can usually be
ignored.

    cd /var/db/pkg
    mv pkgdb.db pkgdb.db.0
    pkgdb -Fu

Now you should be able to run portupgrade(1) successfully.  If you're
happy that everything is working correctly again, you can delete all
those .0 backup files.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

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?20021122130056.GA30135>