Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2003 19:29:59 -0400
From:      Tim Kellers <timothyk@wallnet.com>
To:        Jonathan <jonathan@sirtis.org.uk>
Cc:        questions@freebsd.org
Subject:   Re: make install, portupgrade, etc broken
Message-ID:  <200307141929.59141.timothyk@wallnet.com>
In-Reply-To: <3F12FC20.6040207@sirtis.org.uk>
References:  <20030713083946.H7537-100000@serv1.wallnet.com> <200307141430.13839.timothyk@wallnet.com> <3F12FC20.6040207@sirtis.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 14 July 2003 02:53 pm, Jonathan wrote:
> Tim Kellers wrote:
> > Just tried it again (cut and paste, not a typescipt output)
> >
> > mts-128# pkg_delete /var/db/pkg/nulib-3.25/
> > mts-128# pkg_info /usr/ports/archivers/nulib/
> > pkg_info: can't find package 'nulib' installed or in a file!
> > mts-128# cd /var/db/pkg
> > mts-128# ls -la nulib*
> > ls: No match.
> > mts-128#
> >
> > It seemed to work and didn't return an error
> >
> > On the broken fileserver:
> >
> > su-2.03# pkg_delete /var/db/pkg/nmap-2.53/
> > su-2.03# whereis nmap
> > nmap: /usr/ports/security/nmap
> > su-2.03# pkg_info security/nmap
> > pkg_info: can't find package 'nmap' installed or in a file!
> > su-2.03#
>
> What's wrong with your "broken" fileserver? You deinstall a package, you
> use the whereis command and then you run pkg_info on something that
> doesn't exist. That's perfectly correct.
>
> Here's mine:
>
> -su-2.05b# whereis nmap
> nmap: /usr/local/bin/nmap /usr/local/man/man1/nmap.1.gz
> /usr/ports/security/nmap
> -su-2.05b# pkg_info security/nmap
> pkg_info: can't find package 'nmap' installed or in a file!
> -su-2.05b# pkg_info nmap
> pkg_info: can't find package 'nmap' installed or in a file!
> -su-2.05b# pkg_info nmap-3.30
> Information for nmap-3.30:
>
> Comment:
> Port scanning utility for large networks
> [snip out the rest of the description]
>
> Your broken stuff doesn't tell us anything, really. What does "pkg_info"
>   show you about everything you have installed?
>
> Have happens in you try "portinstall nmap" which doesn't require a
> specific version?
>
> - J
>
> P.S. Why are you not just using the package names for your pkg commands?
>

I think we've got 2 threads mixed here, but to review.

I cvsupped July 11 and did a make buildworld, make buildkernel 
KERNCON=CHANGLING, reboot make installworld, mergemaster on 3 different 
boxes.  All is/was well on 2 of the 3 boxes, but on the third any/every make 
install or portupgrade [filename] errors out with Error Code 1 right after 
make install checks for a previous installation.  The option 
FORCE_PKG_REGISTER="yes'" allows the installation to completesuccessfully, 
the portupgrade -m  FORCE_PKG_REGISTER="yes'" switch also succeeds.  I NFS 
mounted /usr/ports from the broken fileserver on a laptop (4.8-STABLE from 
same cvs updated sources) and I can make install or portupgrade with no 
errors at all.

pkg_info -q -O some/port on the laptop returns the package name of the 
installed port

pkg_info -q -O some/port on the fileserver returns:

pkg_info: package cvsupd-bin-16.1 has no origin recorded
pkg_info: package ghostscript-6.01_1 has no origin recorded
pkg_info: /var/db/pkg/jdk-tutorial-1.1.8/+CONTENTS: No such file or directory

Something in my /var/db/pkg/files is seriously hosed, I suspect, and I'm 
trying to figure out how to un-hose it.  And since this didn't happen until 
immediately after a cvsupdate and build, I'm curious about the cause.

As far as why I wasn't using just the package names for my pkg commands: I was 
until about Sunday morning when I just started trying some other approaches 
to see if I could shake something loose.

Thanks,

Tim Kellers
CPE/NJIT



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