From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 23:31:29 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1B1CA4D5 for ; Sat, 14 Feb 2015 23:31:29 +0000 (UTC) Received: from glockenspiel.complete.org (glockenspiel.complete.org [192.99.4.47]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E8BB465B for ; Sat, 14 Feb 2015 23:31:28 +0000 (UTC) Received: from [63.245.179.205] (helo=hephaestus.lan.complete.org) by glockenspiel.complete.org with esmtps (with TLS1.2:RSA_AES_128_CBC_SHA1:128) (TLS peer CN christoph.complete.org, certificate verified) (Exim 4.80) id 1YMmBK-0001qy-TU for freebsd-questions@freebsd.org; Sat, 14 Feb 2015 17:31:27 -0600 Received: from [::1] by hephaestus.lan.complete.org with esmtp (Exim 4.84) (envelope-from ) id 1YMmBH-0008Ap-LX for freebsd-questions@freebsd.org; Sat, 14 Feb 2015 17:31:23 -0600 Message-ID: <54DFDACA.3030709@complete.org> Date: Sat, 14 Feb 2015 17:31:22 -0600 From: John Goerzen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Is pkg silently ignoring failures? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2015 23:31:29 -0000 Hello, So today I ran a pkg install which included nspluginwrapper. Apparently I should have first run kldload linux before running pkg install nspluginwrapper, but I didn't. I happened to be capturing the output of the session under script(1), but the only reason I knew anything was amiss was that I happened to glance at the screen at the right time. I got errors like: [132/681] Installing linux_base-c6-6.6_3... sysctl: unknown oid 'compat.linux.osrelease': No such file or directory linuxulator is not (kld)loaded, exiting pkg: PRE-INSTALL script failed Extracting linux_base-c6-6.6_3: 100% +++ Some programs may need linprocfs, please add it to /etc/fstab! +++ Running linux ldconfig... ELF binary type "3" not known. /compat/linux/sbin/ldconfig: Exec format error Extracting linux-c6-expat-2.0.1_1: 100% ELF binary type "3" not known. /compat/linux/sbin/ldconfig: Exec format error pkg: POST-INSTALL script failed and so forth. So all these pre-install and post-install scripts are failing. I assume this means the package isn't properly installed or configured. But: # pkg install linux_base-c6 Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) The most recent version of packages are already installed So my questions are: 1) Shouldn't pkg have given me some indication at the end that "packages X, Y, and Z didn't install correctly"? 2) How do I figure out which packages were impacted (without painstaking through the entire output of script)? 3) How do I fix it? Thanks! John