Subject: Re: pkgdb.byfile.db croaked
To: None <jdolecek@netbsd.org>
From: Todd Gruhn <tgruhn2@mail.com>
List: tech-pkg
Date: 01/18/2003 08:25:37
I did that a couple times before, and I just did it 3x more.
I keep getting this message
gandalf# pkg_admin rebuild
pkg_admin: cannot open pkgdb: Undefined error: 0
gandalf# pwd

----- Original Message -----
From: Jaromir Dolecek <jdolecek@netbsd.org>
Date: Fri, 17 Jan 2003 21:41:48 +0100 (CET)
To: Todd Gruhn <tgruhn2@mail.com>
Subject: Re: pkgdb.byfile.db croaked

> 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.''     -=-
> 

-- 
__________________________________________________________
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