目 录CONTENT

文章目录

OpenWrt更换国内镜像源

ashin
2021-03-23 / 0 评论 / 1 点赞 / 5478 阅读 / 1109 字

1、登录openwrt管理界面

http://192.168.1.1/cgi-bin/luci/

2、对OpenWrt添加https支持

OpenWrt官方源使用的是http协议,而国内源大多使用的是ssh协议,所以需要安装https支持。

opkg update
opkg install ca-certificates luci-ssl-openssl

安装软件包方法参考此处:openwrt安装软件的两种方式

3、依次打开系统->Software->Configure opkg,出现配置界面

openwrt.png

4、备份官方文件

将/etc/opkg/distfeeds.conf 中的所有条目复制到 /etc/opkg/customfeeds.conf 中,然后注释掉 distfeeds.conf 中的内容。

5、替换源

将 customfeeds.conf 文件中的 http://downloads.openwrt.org/ 替换为https://mirrors.tuna.tsinghua.edu.cn/openwrt/

6、更新

点击 opkg update 更新

1

评论区