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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to