Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2003 22:44:56 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        ioang@verizon.net, freebsd-questions@freebsd.org
Subject:   Re: portupgrade problems, please help
Message-ID:  <200310212244.56753.kstewart@owt.com>
In-Reply-To: <200310212250.49208.ioang@verizon.net>
References:  <200310212029.08699.ioang@verizon.net> <200310212108.49670.racerx@makeworld.com> <200310212250.49208.ioang@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 21 October 2003 07:50 pm, ivan georgiev wrote:
> > > > > > I use 5_1_RELEASE. I do not know what happened but now I
> > > > > > get:
> > > > > >
> > > > > > -su-2.05b# portupgrade -arR
> > > > > > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:325:in
> > > > > > `deorigin': failed to convert nil into String
> > > > > > (PkgDB::DBError) from
> > > > > > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:918:in
> > > > > > `tsort_build' from
> > > > > > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:917:in `each'
> > > > > > from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:917:in
> > > > > > `tsort_build' from
> > > > > > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:909:in `each'
> > > > > > from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:909:in
> > > > > > `tsort_build' from
> > > > > > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:931:in
> > > > > > `sort_build' from
> > > > > > /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:935:in
> > > > > > `sort_build!' from /usr/local/sbin/portupgrade:674:in
> > > > > > `main' from /usr/local/sbin/portupgrade:207:in `initialize'
> > > > > > from /usr/local/sbin/portupgrade:207:in `new'
> > > > > > from /usr/local/sbin/portupgrade:207:in `main'
> > > > > > from /usr/local/sbin/portupgrade:1846
> > > > > >
> > > > > > Can someone tell how to fix it. I tried "pkgdb -uf" but it
> > > > > > doesn't help.
> > > > >
> > > > > You may try to remove /var/db/pkg/pkgdb.db and pkgdb -u
> > > > > again.
> > > >
> > > > Thanks, but it didn't cure it  :(
> > >
> > > I would force upgrade portupgrade before you do anything using
> > >
> > > portupgrade -Rf portupgrade.
> >
> > /usr/local/sbin/pkgdb -fuF
> > /usr/local/sbin/portupgrade -arR
>
> Thanks for the input,
>
> > > portupgrade -Rf portupgrade.
>
> did not help. As well as
>
> > /usr/local/sbin/pkgdb -fuF
>
> Still :(
>

What versions of ruby do you have installed? I can remember back a few 
versions, that uninstalling portupgrade and ruby and then making and 
installing portupgrade was faster than fighting the problems with ruby.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



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