From owner-freebsd-questions@FreeBSD.ORG Fri Jan 3 09:59:59 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A2AC53E for ; Fri, 3 Jan 2014 09:59:59 +0000 (UTC) Received: from mail-qe0-x22f.google.com (mail-qe0-x22f.google.com [IPv6:2607:f8b0:400d:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2AB281CC3 for ; Fri, 3 Jan 2014 09:59:59 +0000 (UTC) Received: by mail-qe0-f47.google.com with SMTP id t7so15212987qeb.20 for ; Fri, 03 Jan 2014 01:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=tE1bKahzNZdqdGAs06KiPdfC8+rloPQuGoYmW/tMu24=; b=n2khNQclmY6uP9Y8OOPHY7wdfEmIEOWwgkln8kL152FanyIsUWW9YZcuv4lS/NejuA ve9Isz1HSlrZhrD7b24Gc/nWaJv4GmMXqOSH93CT59IELfyjYV0YHIzbT4y3QQLZP9UU FgMrszxEspmmBR4k6z5TPO1qve6V061gCHlUGAbH98o/h7khmVa1t9RuJjpR1ZPQ6ZFP ETh80zuBhW1/zVI0MUi40ze4v5OlOhs/opAe578RvCGMF0q6AQ/AOwRZnO3AishS3CBF a6zmbx/5Ke1zOTf/hfvMiBKzOv2VfItrsEl8Mu5vGi2GJ02JhzWO0bXqKPb2UbBPmaRz y54w== MIME-Version: 1.0 X-Received: by 10.224.46.8 with SMTP id h8mr147003333qaf.49.1388743198387; Fri, 03 Jan 2014 01:59:58 -0800 (PST) Received: by 10.224.98.69 with HTTP; Fri, 3 Jan 2014 01:59:58 -0800 (PST) Date: Fri, 3 Jan 2014 11:59:58 +0200 Message-ID: Subject: Need a hand for resolving package installation errors on NanoBSD From: Dimitar Vassilev To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2014 09:59:59 -0000 Happy new year all, I'm having issues with installing packages on a nanobsd image using the cust_pkg function in the script itself. Logs from the failed installations are located at http://playground.oldbonez.net/pkg3 ( most recent) http://playground.oldbonez.net/pkg_fail2 (previous attempt) Both fail with a similar error + echo 'FAILED: Nothing happened on this pass' FAILED: Nothing happened on this pass + exit 2 As far as I understand this is related to the following function in the script # Count & report how many we have to install todo=`ls ${NANO_WORLDDIR}/Pkg | wc -l` echo "=== TODO: $todo" ls ${NANO_WORLDDIR}/Pkg echo "===" while true do # Record how many we have now have=`ls ${NANO_WORLDDIR}/var/db/pkg | wc -l` # Attempt to install more packages # ...but no more than 200 at a time due to pkg_add's internal # limitations. chroot ${NANO_WORLDDIR} sh -c \ 'ls Pkg/*tbz | xargs -n 200 pkg_add -F' || true # See what that got us now=`ls ${NANO_WORLDDIR}/var/db/pkg | wc -l` echo "=== NOW $now" ls ${NANO_WORLDDIR}/var/db/pkg echo "===" if [ $now -eq $todo ] ; then echo "DONE $now packages" break elif [ $now -eq $have ] ; then echo "FAILED: Nothing happened on this pass" exit 2 fi done rm -rf ${NANO_WORLDDIR}/Pkg However I have placed all the packages and their dependencies in the same place and with the same permissions 644. Running the whole process as root. Any help with resolving this is appreciated. Please put my name in to or CC in order to catch your response quicker. Thanks! Best regards, Dimitar