Date: Wed, 24 Nov 2004 06:15:07 +0000 From: Eric Kjeldergaard <kjelderg@gmail.com> To: Doug Lee <dgl@dlee.org>, freebsd-questions@freebsd.org Subject: Re: How best to recover from untimely portupgrade interruption? Message-ID: <d9175cad04112322153b56cf3c@mail.gmail.com> In-Reply-To: <20041124055548.GS597@kirk.dlee.org> References: <20041124055548.GS597@kirk.dlee.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <package>. -- If I write a signature, my emails will appear more personalised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d9175cad04112322153b56cf3c>