From owner-freebsd-questions Sun May 14 15:01:56 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA01848 for questions-outgoing; Sun, 14 May 1995 15:01:56 -0700 Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id PAA01842 for ; Sun, 14 May 1995 15:01:55 -0700 Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <14409(2)>; Sun, 14 May 1995 15:01:18 PDT Received: by crevenia.parc.xerox.com id <49859>; Sun, 14 May 1995 15:01:08 -0700 From: Bill Fenner To: questions@FreeBSD.org Subject: pkg_add fails: Error status 1 from mtree Message-Id: <95May14.150108pdt.49859@crevenia.parc.xerox.com> Date: Sun, 14 May 1995 15:00:58 PDT Sender: questions-owner@FreeBSD.org Precedence: bulk Two things about pkg_add: 1) I can't get it to run at all on my machine. I am running SNAP-950412 with a custom kernel and not much else. # pkg_add -v maplay-1.2.tgz Projected package size: 89640 bytes, free temp space: 91331584 bytes extract: Package name is maplay-1.2 extract: CWD to /usr/local extract: /usr/local/bin/maplay extract: CWD to . Running mtree for maplay-1.2.. mtree -u -f +MTREE_DIRS -d -e -p /usr/local usage: mtree [-cdeinrUux] [-f spec] [-K key] [-k key] [-p path] [-s seed] Error status 1 from mtree. (CWD to /usr/local) Delete: /usr/local/bin/maplay (CWD to .) 1 package addition(s) failed. 2) If I run pkg_add without -v, the error message doesn't make it clear that it actually removed the package: # pkg_add maplay-1.2.tgz usage: mtree [-cdeinrUux] [-f spec] [-K key] [-k key] [-p path] [-s seed] Error status 1 from mtree. And about pkg_maint: it doesn't handle this kind of error from pkg_add very well... I'm sure this is all caused by something odd on my system; I can't imagine what, though. Bill