From owner-freebsd-questions@freebsd.org Thu Feb 4 16:08:19 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 56C2BA735BD for ; Thu, 4 Feb 2016 16:08:19 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) 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 DCA81CB6 for ; Thu, 4 Feb 2016 16:08:18 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id u14G48wW053998 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 4 Feb 2016 16:04:15 GMT (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=infracaninophile.co.uk DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk u14G48wW053998 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1454601855; bh=KNOYn1xRuRqEKZervwS2HKkTtX4lygXiT8HDjlunszc=; h=Subject:To:References:From:Date:In-Reply-To; z=Subject:=20Re:=20pkg(8)=20doesn't=20work=20properly=20in=20chroot =20anymore|To:=20freebsd-questions@freebsd.org|References:=20<56B3 7252.8070406@gmx.com>|From:=20Matthew=20Seaman=20|Date:=20Thu,=204=20Feb=202016=2016:04:02=20+0000| In-Reply-To:=20<56B37252.8070406@gmx.com>; b=gBBYvd/b0DpUihflduUD47E0CCf/lrZR8YufjQ6rB8tRxz3LDn0qT+8KEjgO47XUc hstPDg9uTKIhyJSucBAx8t4Ac1NnLetvKPcqLqdDpg3G4HNV9pVdXwTyKZPnBl5rBe CcKg7ADi2gZJWZwkFE1ozYfK2LcdAYcSnDYGdN4M= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Subject: Re: pkg(8) doesn't work properly in chroot anymore To: freebsd-questions@freebsd.org References: <56B37252.8070406@gmx.com> From: Matthew Seaman Message-ID: <56B37672.8040805@infracaninophile.co.uk> Date: Thu, 4 Feb 2016 16:04:02 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56B37252.8070406@gmx.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XQ4AtdeubOMWpFQDsiiBj5xGHoPjbbXvB" X-Virus-Scanned: clamav-milter 0.99 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean 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: Thu, 04 Feb 2016 16:08:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XQ4AtdeubOMWpFQDsiiBj5xGHoPjbbXvB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/04/16 15:46, Nikos Vassiliadis wrote: > I have several jails and in one of them pkg doesn't seem > to function properly anymore >=20 >=20 >> root@clio:~ # pkg -c /jails/sa/ info >> pkg-1.6.2 Package manager >> root@clio:~ # >=20 > or >=20 >> root@clio:~ # chroot /jails/sa/ pkg info >> pkg-1.6.2 Package manager >> root@clio:~ # >=20 > This is not true. There is a spamassassin installation in that jail. >=20 This suggests that the pkg database in /jails/sa/var/db/pkg has been trashed. Check in /jails/sa/var/backup to see if there is a usable backup you might be able to revert to. Failing that, if you know what should have been installed in that jail, just reinstall it all and restart the jail. Matthew --XQ4AtdeubOMWpFQDsiiBj5xGHoPjbbXvB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWs3Z3AAoJEABRPxDgqeTnIoYQALViZFFkX4YQtRj1Z3Mqdwbl cFzT38QxU24srvMzAJivuwps6Ns0VRgFqq1CJ/g3RgsCHtPW5+mr8V+E4PkKmLfG Z9zbbixBzvm02yLaTEtnOeQdhIOu9oquZL54OE5HvBTWKWPNMnrvOBE42q9AoM2H bI1QjY5YUR+Zg1KMM3OmB3AHerPAdFa4QkpxvR6lpqsQdProjQtyJ6iI6dpVEsWD uIRpfxzV0Af6EiTm0/8RQ3WB+Iw/HVOJwBOHwjIgDsQBnsHCscMfJgSVborFvR7k 8tvUyeHar1yFgYVAyKAlUQFUnf2XgCxD1MxcLMwdnl7MfrwI/9kuBkZsCx4HpSVI IS2RBvikj3hjrU8myryVoitqAhwDv7r8MpO2DbSW+4C665jD2k/vnhSuJ2D9kc7x rrwx2d+bVw7qq1iMio9oWE15MKTFM6Tp7gyfOCazRelIT2HmG0HE87QxjlkHuFI2 elR17lE5TjMDo4wB2UwCzxYWemNAlWh6tk+3OdoC+UTNV1Eqsmx1BNN7fSCjd4Lc z6qLXQAVHvoqjGHQ4OyhSO6S4+zA6O80by/4Fs/jg7peE0S7dcDCUfgjDsu6jz/S DEqpWFI4/RzFXEjKl7J/tmV1frffI2VNTVaMjebEajf8deT4OzLFitcSz4QPeXl3 BU/HCcKWXz5NJii6nJBS =nCOg -----END PGP SIGNATURE----- --XQ4AtdeubOMWpFQDsiiBj5xGHoPjbbXvB--