这是一篇小笔记,truenas默认没法使用pkg install
来安装包,会出现以下报错
pkg: file:///usr/ports/packages/meta.txz: No such file or directory ..... pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory Unable to update repository local
解决方案是进入`/usr/local/etc/pkg/repos/` ,把`local.conf`中`enabled`后的yes改成no,把`FreeBSD.conf`中`enabled`后的no改成yes即可。
方案来源 : https://www.justinsilver.com/random/fix-pkg-on-freenas-11-2/