-
备份原始配置文件
cp /etc/opkg/distfeeds.conf /etc/opkg/distfeeds.conf.bk
-
安装
libustream-openssl/luci-ssl-openssl ca-bundle ca-certificates
,以启用HTTPS避免运营商缓存劫持。opkg install ca-bundle ca-certificates luci-ssl-openssl # 或 opkg install ca-bundle ca-certificates libustream-openssl
-
使用如下命令替换镜像源
sed -i 's/downloads.openwrt.org/mirrors.ustc.edu.cn\/openwrt/g' /etc/opkg/distfeeds.conf
-
更新软件索引,检查是否出现错误
opkg update
参考:
- OpenWRT如何使用国内镜像 – ITGeeker技术奇客
https://www.itgeeker.net/openwrt-how-to-use-repository-mirror-in-china/- OpenWRT/LEDE 源使用帮助 — USTC Mirror Help 文档
http://mirrors.ustc.edu.cn/help/openwrt.html- Luci over HTTPS (luci-ssl vs. luci-ssl-openssl) - Installing and Using OpenWrt - OpenWrt Forum
https://forum.openwrt.org/t/luci-over-https-luci-ssl-vs-luci-ssl-openssl/12828/18