From owner-freebsd-questions@FreeBSD.ORG Fri Feb 29 21:57:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 081CB106566B for ; Fri, 29 Feb 2008 21:57:06 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id C8EDE8FC28 for ; Fri, 29 Feb 2008 21:57:05 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 902431CCD5; Fri, 29 Feb 2008 12:57:03 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Fri, 29 Feb 2008 22:56:59 +0100 User-Agent: KMail/1.9.7 References: <47C86A22.4010706@mahan.org> In-Reply-To: <47C86A22.4010706@mahan.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802292256.59433.fbsd.questions@rachie.is-a-geek.net> Cc: Patrick Mahan Subject: Re: Having problems with my ports configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 21:57:06 -0000 On Friday 29 February 2008 21:25:06 Patrick Mahan wrote: > System Info: > > Compaq Presario (AMD Athlon CPU) > 256 Mbytes RAM > 80 Gig IDE system disk > FreeBSD 5.5-RELEASE #0: Tue May 23 14:58:27 UTC 2006 > > I am having problems with my current installed ports. Last week > the drive where /usr/ports is upon (80 Gig IDE) start generating > READ errors on the console and hanging the system. It took a few > days of doing multiple reboots, fsck and BIOS work before it was > back operating again. > > One of the issues that came out of this was it seemed that the > ports database (/var/db/pkg/pkgdb.db) was corrupt. So I tried > to rebuild it by deleting it and setting PKG_DBDIR). I issued > a 'portsdb -Uu' and it fails - You're confusing .db's here. /vardb/pkg/pkgdb.db is fixed or rebuilt, using pkgdb -F. But read on... > > host# portsdb -Uu > Updating the ports index ... Generating INDEX.tmp - please > wait..p5-DateTime-Calendar-Japanese-0.06001: > "/usr/ports/japanese/p5-DateTime-Calendar-Japanese-Era" non-existent -- > dependency list incomplete > ===> devel/p5-DateTime-Calendar-Japanese failed > *** Error code 1 > 1 error You're missing that directory, fsck probably deleted it. If you wanted to keep your old ports tree, you're outof luck without having a backup. Otherwise: csup -L2 /path/to/ports-supfile Or use portsnap, or whatever you're comfy with. > I've tried fetching a new INDEX, done a pkgdb -Fu, but nothing seems to > work. pkgdb -F does nothing? No errors, warnings? Could be your /var/db/pkg is damaged as well, if it's the same disk. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.