Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2016 07:19:49 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        Perry Hutchison <perryh@pluto.rain.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: "pkg: pkg is not installed" even after installing it
Message-ID:  <56935795.5000207@FreeBSD.org>
In-Reply-To: <56931d35.1U3OAjwPQuA2rasY%perryh@pluto.rain.com>
References:  <5691d97a.VHZI0elGOQrdG7%2Be%perryh@pluto.rain.com> <56922538.7080105@FreeBSD.org> <56931d35.1U3OAjwPQuA2rasY%perryh@pluto.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56935795.5000207>