Subject: Re: pkgdb.byfile.db croaked
To: Todd Gruhn <tgruhn2@mail.com>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-pkg
Date: 01/17/2003 21:41:48
Try recreating the db - via 'pkg_admin rebuild'

Jaromir

Todd Gruhn wrote:
[ Charset ISO-8859-1 unsupported, converting... ]
> 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/pgcc.sh > pg++.n
> ew
> chmod a+x pg++.new
> mv -f pg++.new 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
> 
> Stop.
> make: stopped in /usr/pkgsrc/devel/mit-pthreads
> *** Error code 1
> 
> Stop.
> 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 Mail.com
> http://www.mail.com/?sr=signup
> 
> Meet Singles
> http://corp.mail.com/lavalife
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-