Subject: pkg_install problems
To: None <tech-userlevel@netbsd.org>
From: Lucio De Re <lucio@proxima.alt.za>
List: tech-userlevel
Date: 11/17/2004 08:51:53
*** Please CC: me as my mail facilities are a little confused presently ***

In trying to create a fresh version in
/usr/pkgsrc/pkgtools/pkg_install, I get:

> # make install
> ===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found,
> ===> *** skipping vulnerability checks. To fix, install
> ===> *** the pkgsrc/security/audit-packages package and run
> ===> *** '/usr/pkg/sbin/download-vulnerability-list'.
> ===> Installing for pkg_install-20041110
> ===> usage: pkg_admin [-V] command args ...
> Where 'commands' and 'args' are:
>  rebuild                     - rebuild pkgdb from +CONTENTS files
>  check [pkg ...]             - check md5 checksum of installed files
>  lsall /path/to/pkgpattern   - list all pkgs matching the pattern
>  lsbest /path/to/pkgpattern  - list pkgs matching the pattern best
>  dump                        - dump database
>  pmatch pattern pkg          - returns true if pkg matches pattern, otherwise false is already installed - perhaps an older version?
> *** If so, you may use either of:
> ***  - "pkg_delete usage: pkg_admin [-V] command args ...
> Where 'commands' and 'args' are:
>  rebuild                     - rebuild pkgdb from +CONTENTS files
>  check [pkg ...]             - check md5 checksum of installed files
>  lsall /path/to/pkgpattern   - list all pkgs matching the pattern
>  lsbest /path/to/pkgpattern  - list pkgs matching the pattern best
>  dump                        - dump database
>  pmatch pattern pkg          - returns true if pkg matches pattern, otherwise false" and "/usr/bin/make reinstall" to upgrade properly
> ***  - "/usr/bin/make update" to rebuild the package and all of its dependencies
> ***  - "/usr/bin/make replace" to replace only the package without re-linking
> ***    dependencies, risking various problems.
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/pkgtools/pkg_install
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/pkgtools/pkg_install
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/pkgtools/pkg_install

Besides the somewhat unreadable error messages, I am unable to
proceed.

This is under NetBSD 1.6.1 with a very fresh copy of pkgsrc.tar.gz and
I don't seem to be able to find a binary copy of pkg_install (or
pkg_admin) that I can try instead of generating the binaries from
source.

Where do I go from here?

++L