From owner-freebsd-questions@freebsd.org Mon Jan 11 07:20:07 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6B73A6A026 for ; Mon, 11 Jan 2016 07:20:07 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A4A81644 for ; Mon, 11 Jan 2016 07:20:07 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id u0B7JvLl069023 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 11 Jan 2016 07:19:57 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk u0B7JvLl069023 Authentication-Results: smtp.infracaninophile.co.uk/u0B7JvLl069023; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6] claimed to be liminal.local Subject: Re: "pkg: pkg is not installed" even after installing it To: Perry Hutchison References: <5691d97a.VHZI0elGOQrdG7+e%perryh@pluto.rain.com> <56922538.7080105@FreeBSD.org> <56931d35.1U3OAjwPQuA2rasY%perryh@pluto.rain.com> Cc: freebsd-questions@freebsd.org From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <56935795.5000207@FreeBSD.org> Date: Mon, 11 Jan 2016 07:19:49 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56931d35.1U3OAjwPQuA2rasY%perryh@pluto.rain.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="H5kT41BsMOia3iHt8VhF76Rd2iLLDUAFa" X-Virus-Scanned: clamav-milter 0.99 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2016 07:20:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --H5kT41BsMOia3iHt8VhF76Rd2iLLDUAFa Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/01/2016 03:10, Perry Hutchison wrote: > That doesn't produce any output, either. However, after mounting > tmpfs on /var/db/pkg and /var/cache, I got: Hmmm... that's certainly a bug. Could you open an issue at https://github.com/freebsd/pkg/issues please, explaining exactly what you did and what happened (or didn't as the case may be)? pkg(8) shouldn't die quietly in those or any circumstances. > # chroot -u 0 -g 0 -G 105,0,5,20,25 /mnt pkg-static add /usr/local/pk= g/pkg.txz > Installing pkg-1.5.4... > Extracting pkg-1.5.4: 100% > ldconfig: mkstemp(/var/run/ld-elf.so.hints.6wHhnd): Read-only file sy= stem > pkg-static: POST-INSTALL script failed > Message for pkg-1.5.4: > If you are upgrading from the old package format, first run: >=20 > # pkg2ng >=20 > # chroot -u 0 -g 0 -G 105,0,5,20,25 /mnt pkg -N > pkg: 1 packages installed >=20 > This time it installed a bunch of stuff in /usr/local and a > "local.sqlite" in /var/db/pkg -- but nothing in /var/cache, > so maybe that isn't needed when installing from a tarball > that is already local. That looks to have worked. Yes, if you use pkg add to install from a tarball directly on your system already, /var/cache/pkg isn't needed. However, it will be necessary as soon as you do anything like 'pkg update' or 'pkg install'. Curious as to why you're using an older version of pkg there -- we're up to 1.6.2 nowadays. Cheers, Matthew --H5kT41BsMOia3iHt8VhF76Rd2iLLDUAFa Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQJ8BAEBCgBmBQJWk1edXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT3EIP/1MBghsHrwHT3sVCQYPIe/n3 owDomQCax4TU4nHCIzpE6uznZT/eDasSkxokk8YcmO2x41pV3tXsm9t742WR2NTa lZDL8+Y0ghVeveyQfwY2SVsUJsLnHwGhoeAig0qvsZ3xbLH9KTalQ923xB5gn7qn paaIIQxxQXqnuG6JNql/lUHGbihGmrLFT56JJ5RHw97s1nXT+M7Dpe53MQsnKtEP YGmyxH70KPQ/ITFt67qm10tyCn3BCjVXAnWlCmpKtraN30cjyXxCAPloYRHtq/9R XnYPhglmjG78uwtrfL2Gb+SlirQ7do4+MrYwy0ae1oVwuT/2KV6OoFxHlt8VJbt5 70rhaoZ9LG2NLzp4SVtXmn8DcpWO91sOlfD/+jeCNocQKtafDFiKLRzGK/UZlqN+ kkOAgdDvVt0exUru7dhyM5g5J1KSeFTXLiiGz7xZgBn/dCg6SjkmAuc8e5cQUgd4 htjr6G5uc9aDfkcybpmy2MqJwVAtP2HLtBy1K7FBFczL86CrJDpl9XY7dklF+wxU hRov0QmD0f5gGYAgNIn3suUHa3CYXtzwbg6xZUgMXydOPGDQbQH2AU+KD4HvJlun mQXx0bfp7auGyxkpDHb8pGzJxLfAsWXvqlIFexpOlakq7mbKvqua2VHcc4fCIPsH f4jHYXgZOYhWffQ6gRe0 =ohzB -----END PGP SIGNATURE----- --H5kT41BsMOia3iHt8VhF76Rd2iLLDUAFa--