Date: Wed, 29 Aug 2007 20:36:10 -0400 From: "Jim Stapleton" <stapleton.41@gmail.com> To: "Garrett Cooper" <youshi10@u.washington.edu> Cc: freebsd-questions@freebsd.org Subject: Re: I was a dolt and killed my pkgdb Message-ID: <80f4f2b20708291736p301a992ap7f54166f2d1b23f0@mail.gmail.com> In-Reply-To: <46D57C7B.203@u.washington.edu> References: <80f4f2b20708290347g233f6e8ds4c27733b8c8723bc@mail.gmail.com> <46D57C7B.203@u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks - I moved the contents of /var/db/pkgdb to ~/pkg/, and then tried to build one of the packages. That gave me a different error, and a useful one. I went and ran portdb (not to be mistaken for pkgdb), in download-index mode. I copied the ~/pkg/ back to /var/db/pkgdb/, and the problem was fixed. Thanks, -Jim Stapleton On 8/29/07, Garrett Cooper <youshi10@u.washington.edu> wrote: > 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?80f4f2b20708291736p301a992ap7f54166f2d1b23f0>