FreeBSD更换源后提示no srv record found for the repo
创建用户级源文件:
# vi /usr/local/etc/pkg/repos/ustc.conf
写入以下内容:
ustc: {
url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly",
mirror_type: "srv",
signature_type: "none",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD: { enabled: no }保存之后执行如下命令更新:
# pkg update -f
如果提示no srv record found for the repo...,将上面的配置文件中url里的pkg+去掉,mirror_type改为none,如下所示:
ustc: {
# url: "pkg+http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly",
url: "http://mirrors.ustc.edu.cn/freebsd-pkg/${ABI}/quarterly",
# mirror_type: "srv",
mirror_type: "none",
signature_type: "none",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
FreeBSD: { enabled: no }保存之后再次执行更行命令:
# pkg update -f