pkg update不会从pkg.freebsd.org获取meta.txz

时间:2017-06-03 00:23:35

标签: freebsd

当我使用pkg update(insall / upgradet)时,它会显示下载meta.txz时超时的错误。但是我可以使用wget直接下载这个文件。

freebsd版本:10.3-RELEASE-p19

[XD] % sudo pkg update           
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/quarterly/meta.txz: Operation timed out
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/quarterly/packagesite.txz: Operation timed out
Unable to update repository FreeBSD
Error updating repositories!

1 个答案:

答案 0 :(得分:0)

Try this out!您需要在fetch_retry中更改fetch_timeout/usr/local/etc/pkg.conf