pkg(8) doesn't work properly in chroot anymore
Nikos Vassiliadis
nvass at gmx.com
Thu Feb 4 17:02:00 UTC 2016
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 at clio:~ # pkg -c /jails/sa/ info
>>> pkg-1.6.2 Package manager
>>> root at clio:~ #
>>
>> or
>>
>>> root at clio:~ # chroot /jails/sa/ pkg info
>>> pkg-1.6.2 Package manager
>>> root at 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
More information about the freebsd-questions
mailing list