Date: Thu, 4 Feb 2016 19:00:49 +0200 From: Nikos Vassiliadis <nvass@gmx.com> To: Matthew Seaman <m.seaman@infracaninophile.co.uk>, freebsd-questions@freebsd.org Subject: Re: pkg(8) doesn't work properly in chroot anymore Message-ID: <56B383C1.50307@gmx.com> In-Reply-To: <56B37672.8040805@infracaninophile.co.uk> References: <56B37252.8070406@gmx.com> <56B37672.8040805@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56B383C1.50307>