当前位置:首页 > Linux > 正文内容

FreeBSD更换源后提示no srv record found for the repo

1周前 (09-26)Linux44

创建用户级源文件:

# 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

返回列表

上一篇:FreeBSD安装MySQL无法启动的问题

没有最新的文章了...

相关文章

Linux开机执行sh脚本

在/etc/systemd/system目录下创建一个后缀名为.service的文件,比如叫auto_start.service,文件内容如下:[Unit]Description=Descriptio...

vsftpd配置文件详解

vsftpd配置文件路径:/etc/vsftpd.conf# 以独立模式运行,ipv4 listen=YES # 是否开启ipv6,ipv4和ipv6不能同时开启 liste...

FreeBSD安装MySQL无法启动的问题

sudo pkg delete mysql57-server sudo rm -rf /usr/local/etc/mysql sudo...