From owner-freebsd-questions@freebsd.org Thu Feb 4 17:23:35 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 EFECCA9C8AB for ; Thu, 4 Feb 2016 17:23:34 +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 97820C2B for ; Thu, 4 Feb 2016 17:23:34 +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 u14HNRVf013742 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 4 Feb 2016 17:23:27 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 u14HNRVf013742 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1454606607; bh=JVPrtBqPhlbbICqrFWFlWcTAykn/hCW/f4b3hzfxJ6s=; 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=2017:23:26=20+0000| In-Reply-To:=20<56B37252.8070406@gmx.com>; b=WkGNM1CCsvMGEGe/GJa9kGyswZ2htXBpm23xljeKcDBaYER5WZ+ggQmvVnPMff5nj imGM1um8w4tcrwiH51w+spOA14nPFvfvJ1qGBgGKB1e/fOFqncsK+hpWkBma/rshA7 PNs7etSdg0wMxnfWUwumjH17UmhHao4Hpn/y2eAM= 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 X-Enigmail-Draft-Status: N1110 Message-ID: <56B3890E.3060107@infracaninophile.co.uk> Date: Thu, 4 Feb 2016 17:23:26 +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="E91i0RsJx1D5CFSEXAUAU7XxAtlelIB8i" X-Virus-Scanned: clamav-milter 0.99 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DCC_CHECK,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=no 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: Thu, 04 Feb 2016 17:23:35 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --E91i0RsJx1D5CFSEXAUAU7XxAtlelIB8i 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 --E91i0RsJx1D5CFSEXAUAU7XxAtlelIB8i Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWs4kOAAoJEABRPxDgqeTnnS8QAKsrHSEQzvOwAmq6HbDQ/yc0 h/KXu35+jaQvdutMy2eDDViimbujtlrLPtmpG8CN7aT0LEFGST28dOaJ/5o1zVFu bn2L37NZt9UuNHJZyokzsZ4QUEL7ujNXQG1uwsSV3x0AP/4aiRWfagqoqZ6kjRnx z+QcT85otiED5cp13qhKyocxYokaqZkZ0KZtZVR6I2xCqvrafqabh7/+vUJO2Q+8 U3OwaKIReMogGZp77nim6CabCqejZ2oYgHZE6VZkj9+gItDb6ZbA2bRz/VnK9Avl Iu5/3cO/ZJ1DdEOA0GLG9tTyN7vZRZtarTDlOGDku2LmkRrt3zeWN9mOU0QFS0pi zzJj4tw9p9JfLg0m0obrbP4BBQJ3wVKjayovLVpQml89sTplduEhRqGAGor+5po9 Fb7MXDduPHGt76kh92vUWL1G86KDGeXgekM28+O4MbMKvaarD4RiVY3K7WLfNRga fZ96Z99Wp0yKhcaiIXnmo0BSxNMsIl86NGV+rh7Sub8RUM+AKCnN4JePFCNOxQDM +HKY0S1X0B28XAQEH8Bk554XgZ/qQMV7qMO5dx2Grtsr3RV4JVhxVy6xz4cd88zU HYfpxmcJBTU8GeOsvO/Peo1RSgl/mWCcsdOKre/DOe/jfqo58gndHu7gQV06X139 c7JHdPfYILmN3w8mtESY =pSHZ -----END PGP SIGNATURE----- --E91i0RsJx1D5CFSEXAUAU7XxAtlelIB8i--