报错信息:
在用pkg install软件时,报错资源库找不到
> pkg install xxx > > Updating repository catalogue > No valid repository found.
解决方法:
创建如下文件和内容: /usr/local/etc/pkg/repos/FreeBSD.conf: FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes }
参考文章:http://lists.freebsd.org/pipermail/freebsd-pkg/2014-March/000258.html
另外:
使用新版的pkg工具,/etc/make.conf需添加一行
WITH_PKGNG= yes
参考文章:https://www.freebsd.org/doc/handbook/pkgng-intro.html