From owner-freebsd-questions@freebsd.org Thu Feb 4 17:02:00 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 C96F5A9BEFA for ; Thu, 4 Feb 2016 17:02:00 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2C4681938 for ; Thu, 4 Feb 2016 17:02:00 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from moby.local ([91.140.53.232]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Lkiqm-1Zt8T33inE-00aStH; Thu, 04 Feb 2016 18:01:58 +0100 Subject: Re: pkg(8) doesn't work properly in chroot anymore To: Matthew Seaman , freebsd-questions@freebsd.org References: <56B37252.8070406@gmx.com> <56B37672.8040805@infracaninophile.co.uk> From: Nikos Vassiliadis Message-ID: <56B383C1.50307@gmx.com> Date: Thu, 4 Feb 2016 19:00:49 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56B37672.8040805@infracaninophile.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:H3YhAnHvHVrS4bdNAoHm82ohjmQE+XA6LxyTNMN0JFalapnIKjc aYjxNqRX3tygfiDORiTj+wOeEgHf5o/R9u5mYATjSz5SKOkPGs+Uadr7gEUCcw9XG301NxM axFVkYZe7cnBd2ptK6Nnmrm21yW4ayPrOFgaBPxTnRQGF5toMYlw0DgKqoQRoYSmXQ6hfv+ BsecSTu+//X4OlP4rIJhg== X-UI-Out-Filterresults: notjunk:1;V01:K0:wG0zLQ992Yo=:3BwidaiuQQ6nW9t7qvXKXX RBcVUb2awzy2j0FhDtmot+PJhbmlSUiDML+bewHjE2LtEepSH9Ydu1V08B5jUxtbGqv5+9UPE UUp8Q/1fGGiLXY7LnrTOwzWpgQ3lvi8jv7CV6EWFbqWntptXid+561FPM20k8NCQqNJGYg7oM 8gKDKCO6C1DCCK8aXgOM93UOVCTAWdGb5D7veh1l+1+H/GxfIBi7D4iDn8xQLB6HhWOBtglqL W3R3tRnagZUQAXhHoDcC5bjwcZSGK9OojNCxbuuDNmqAnAKIWzat6qCD9vVCZelwcszZ9KIQI BKf4mJAatqGbtA3r9xnjIxvEOnSnXzzHgI0dHd2LEzLI60r9PgSyQN84UgmXZdRg0YfFLMlaa cBNp95KeSD7fQYqEgn6Ex5BtrGy0lOh0x9YDtanxrFoO6X0oqXekowkFqiuFxYaFU+y4QWz3+ kRJDDmQt9Xnmvacq2vikO2fn0AuhpdWEYZybh61k8RabSH4c3VwL+SzjNHbhaD7/HF6HTcrnQ ZdBy8ofZCR3n4h1gImXSOjbJmqrCneNPfJ1VgdX8jlVcHoo76NlH812J1Q+9ZJt1QgF28CMsv 1sUaG+nZj31Qpxzi04DnMTFgGMchxqnOjBaUacqZioXW+DNiEjSSCARohfyBrfPj+uDh7vFIl ErRp9+xa6lDVX2rDc9X53fSyDFZiNO7J4cJyZ2MyP3tNl60Fwcu4+LLEc8mkvfF+16dRpDiR9 w97i4u5mYXubH1v7QFlB9vyswm2+l/PKonn71gtoTmtTkXunBIvShUDaHijy/1bzlSJXny8yL QEQRKsw 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:02:00 -0000 On 02/04/16 18:04, Matthew Seaman wrote: > 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 >> >> >>> root@clio:~ # pkg -c /jails/sa/ info >>> pkg-1.6.2 Package manager >>> root@clio:~ # >> >> or >> >>> root@clio:~ # chroot /jails/sa/ pkg info >>> pkg-1.6.2 Package manager >>> root@clio:~ # >> >> This is not true. There is a spamassassin installation in that jail. >> > > 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 After a closer examination of all ZFS snapshots and all var/backups/pkg* files, I realized that it was just my mistake. That jail was just cloned from the jail template but SA was never installed/configured. Thanks and sorry for the noise, Nikos