Subject: pkgdb.byfile.db croaked
To: None <>
From: Todd Gruhn <>
List: tech-pkg
Date: 01/18/2003 04:40:33
I just upgraded to NetBSD-1.6.0 and I noticed that when I upgraded
packages I had to force the system to overwrite the old package
because it could not delete it!

I did "make install FORCE_PKG_REGISTER=1" and kept getting this:

pkgsrc/devel/mit-pthreads/work.i386/pthreads-1_60_beta6/scripts/ > pg++.n
chmod a+x
mv -f pg++
ln -fs obj/pg++ ../pg++
for x in pgcc pg++ ; do  install $x /usr/pkg/pthreads/bin;  done
(cd /usr/pkgsrc/devel/mit-pthreads/work.i386/pthreads-1_60_beta6/include && tar 
chf - .)|(cd /usr/pkg/pthreads/include && tar xf -)
if [ -d config ]; then true; else  (cd /usr/pkgsrc/devel/mit-pthreads/work.i386/
pthreads-1_60_beta6/include && tar chf - .)|(cd /usr/pkg/pthreads/include && tar
 xf -); fi
(cd /usr/pkg/pthreads/include && find . \( -name CVS -o -name \*~ \) -print | xa
rgs rm -rf)
`/usr/pkgsrc/devel/mit-pthreads/work.i386/.PLIST' is up to date.
===> [Automatic ELF shared object handling]
pkg_delete: cannot open /usr/db/pkg/pkgdb.byfile.db: Undefined error: 0
*** Error code 1

make: stopped in /usr/pkgsrc/devel/mit-pthreads
*** Error code 1

make: stopped in /usr/pkgsrc/devel/mit-pthreads
*** Error code 1

I tried pulling an old copy off the tape, deleting it and starting
overm but nothing works. I moved and archived a bunch or libs
from /usr/lib; what should I try putting back?

Sign-up for your own FREE Personalized E-mail at

Meet Singles