From owner-freebsd-questions@FreeBSD.ORG Wed Nov 24 06:15:09 2004 Return-Path: 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 314A316A4CE for ; Wed, 24 Nov 2004 06:15:09 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C343443D3F for ; Wed, 24 Nov 2004 06:15:08 +0000 (GMT) (envelope-from kjelderg@gmail.com) Received: by rproxy.gmail.com with SMTP id a36so47758rnf for ; Tue, 23 Nov 2004 22:15:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=VHH6GeeTNmYsvHavmvavJ1/pbJwaRqoeXbmHvY79Tcezq1Wu5faUuWx3fzaIiAIxFjcvhIsLZ0Oi91dU6SLrP7FE73yqboAP8gaqDXmskzu0KaSVsmPY4y5GV4s7PKSeAe0UXDXkRb1hLzWPeNLtSfiLayOERrtk7yvxqO3Kmrc= Received: by 10.38.99.75 with SMTP id w75mr196325rnb; Tue, 23 Nov 2004 22:15:08 -0800 (PST) Received: by 10.38.15.38 with HTTP; Tue, 23 Nov 2004 22:15:07 -0800 (PST) Message-ID: Date: Wed, 24 Nov 2004 06:15:07 +0000 From: Eric Kjeldergaard To: Doug Lee , freebsd-questions@freebsd.org In-Reply-To: <20041124055548.GS597@kirk.dlee.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041124055548.GS597@kirk.dlee.org> Subject: Re: How best to recover from untimely portupgrade interruption? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eric Kjeldergaard List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2004 06:15:09 -0000 > I'm afraid I missed the note in /usr/ports/UPDATING about portupgrade > building INDEX, so when a simple upgrade stalled for three hours (p166 > here) without doing anything obvious, I'm afraid I typed ^C. > Portupgrade was rebuilding the database, and the ^C made it move on to > the index, which I again stopped with ^C now knowing I'd actually > interrupted something other than an infinite loop. > > Now if I rerun portupgrade, it restarts the index build but warns me > about an incomplete dependency list. I assume this is because I shot > down the database builder. That part of the process doesn't seem to > want to rerun though... > > So my question is, what is the best recommended way to get everything > back in order? I assume I need to do something to make the database > rebuild restart, but I'm not sure what that is. Portupgrade's process > isn't interactive like my pkgdb runs, and I didn't snag a ps list at > the time, so I'm not sure what it was doing. > What I've done in cases like this (or any pkgdb inconsistencies) is pkgdb -F and answer the altogether-too-cryptic questions. It's a bit painful, but reminds me why I shouldn't do thinks like pkg_add -fr . -- If I write a signature, my emails will appear more personalised.