On Thu, Aug 24, 2006 at 01:44:04PM -0700, Edward Ray wrote:
[...]
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> # export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/3.9/packages/i386/
> 
> # pkg_add bash-3.1.1p0.tgz
> Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.9/packages/i386/:
> Unknown command.
> Not an ustar archive header
> bash-3.1.1p0:libiconv-1.9.2p3: complete
> Adjusting md5 for /usr/local/lib/libiconv.a from
> 044a57b2de335fa8b5c24f977e9dc0af to 4e50ca5fc370e7247ffddea2ac1bd5af
> /usr/sbin/pkg_add: Installation of libiconv-1.9.2p3 failed , partial
> installation recorded as partial-libiconv-1.9.2p3 # bash

$(pkg_info | grep partial) should verify that
partial-libiconv-1.9.2p3 is installed. You should use pkg_delete to
get rid of the partial- package (and figure out what you did to
cause pkg_add to fail).

> ksh: bash: not found
> # pkg_add amap-5.2.tgz
> Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.9/packages/i386/:
> Unknown command.
> amap-5.2:pcre-6.4p1: complete
> 
> amap-5.2: complete

OK...

> # pkg_add nmap-3.95p0.tgz
> Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.9/packages/i386/:
> Unknown command.
> Can't install libiconv-1.9.2p3 because of conflicts
> (partial-libiconv-1.9.2p3)
> /usr/sbin/pkg_add: libiconv-1.9.2p3:Fatal error # pkg_add wget-1.10.2p0.tgz
> Error from ftp://ftp.openbsd.org/pub/OpenBSD/3.9/packages/i386/:
> Unknown command.
> Can't install libiconv-1.9.2p3 because of conflicts
> (partial-libiconv-1.9.2p3)
> /usr/sbin/pkg_add: libiconv-1.9.2p3:Fatal error

This is quite clear. It can't install libiconv because it conflicts
with the partial- package it told you that it installed above.
Delete the partial- package, figure out what's really wrong (if
anything), and try again.

> My only choice appears to be rebuild, which I have done three
> times now.

Rebuild what? libiconv? pkg_add will fetch dependencies for you. If
you're having trouble with ports, stop using them (except for the
very few cases where licensing dictates otherwise).

> If someone could point me to the magic formula of package
> downloads, much appreciated.

pkg_add(1), pkg_delete(1), the FAQ.

> I am trying to build a box for pen testing, and will switch to a
> Linux variant or FreeBSD if OpenBSDs ports and packages are
> screwed up.

Packages and ports have worked just fine for me on 3.9 and -current.

> It never used to be that difficult to build an OpenBSD pen test
> box, at least with v3.6/v3.7/v3.8

It still isn't. Make sure your kernel and userland are up to date,
and use packages. It's easy.

-- 

o--------------------------{ Will Maier }--------------------------o
| web:.......http://www.lfod.us/ | [EMAIL PROTECTED] |
*------------------[ BSD Unix: Live Free or Die ]------------------*

Reply via email to