Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2007 07:02:35 -0700
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        Jim Stapleton <stapleton.41@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: I was a dolt and killed my pkgdb
Message-ID:  <46D57C7B.203@u.washington.edu>
In-Reply-To: <80f4f2b20708290347g233f6e8ds4c27733b8c8723bc@mail.gmail.com>
References:  <80f4f2b20708290347g233f6e8ds4c27733b8c8723bc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jim Stapleton wrote:
> I was building a couple of packages, figured I'd do it while at work.
> I was using portupgrade, and accidentally hit enter before typing all
> the package paths. I quickly ctrl-c'ed to exit, forgetting that that
> should not be done while pkgdb is running.
>
> Now I get this error when I try to run pkgdb:
> [root@bombadil /usr/ports]# portupgrade -N editors/xemacs
> sysutils/screen www/lynx
> [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... - 9
> packages found (-0 +9) ......... done]
> [Gathering depends for editors/xemacs
> ............................................................................................................................................................................................................................................................................................................
> done]
> [Gathering depends for sysutils/screen  done]
> [Gathering depends for www/lynx .. done]
>
> It will check for dependancies for the packages I want to install, but
> it won't actually install them.
>
> I've tried:
>   pkgdb -f
>   pkgdb -af
>   mv /var/db/pkgdb/pkgdb.db ~; pkgdb -af
>
> and always end up with the same build results.
> What is the next step?
>
> Thanks,
> -Jim Stapleton
Jim,
    If you know what packages files were being modified at the time (the 
ones that live inside /var/db/pkg, but aren't pkgdb.db), you can zap the 
actual files with little consequence. Don't forget to revive the files 
though by either executing make package/package-recursive (the Makefile 
method), pkg_add, or portupgrade's method.
Cheers,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46D57C7B.203>