From owner-freebsd-questions Fri Nov 22 5: 1:18 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 0ED0A37B401 for ; Fri, 22 Nov 2002 05:01:17 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5602743E3B for ; Fri, 22 Nov 2002 05:01:15 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gAMD11x2039641 for ; Fri, 22 Nov 2002 13:01:01 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gAMD0uw9039640 for questions@FreeBSD.ORG; Fri, 22 Nov 2002 13:00:56 GMT Date: Fri, 22 Nov 2002 13:00:56 +0000 From: Matthew Seaman To: questions@FreeBSD.ORG Subject: Re: What happened to my ports system? Message-ID: <20021122130056.GA30135@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , questions@FreeBSD.ORG References: <20021122141156.331336e8.johann@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021122141156.331336e8.johann@broadpark.no> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-2.5 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT, USER_AGENT_MUTT version=2.43 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 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 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