OpenWrt的OPKG命令软件源的配置文件有以下两个:
/etc/opkg/customfeeds.conf:
用户自定义源,建议把新增的软件源写在该文件中,格式为:src/gz源名称源地址
/etc/opkg/distfeeds.conf:
发行版官方源,不建议更改,如果替换了同名称的源,可以将其内容注释掉以便恢复。
customfeeds替换为中科大、清华镜像源
方案一:
1.先将/etc/opkg/distfeeds.conf中的所有条目复制到/etc/opkg/customfeeds.conf中,然后注释掉distfeeds.conf中的内容。
2.再将customfeeds.conf文件中的http://downloads.openwrt.org/替换为https://mirrors.ustc.edu.cn/lede/或者https://mirrors.tuna.tsinghua.edu.cn/openwrt/即可。
方案二:
sed-i's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_'/etc/opkg/distfeeds.conf
由于很多源是https,所以需要安装curl的ssl支持,命令如下:
opkgupdate
opkginstalllibustream-opensslca-bundleca-certificates
|