OpenWrt默认的软件源为openwrt.org,但是在国内使用速度非常慢,而且经常无法更新,所以需要更换为国内源。

Web页面更换国内源

1、系统 -> Software -> Configure OKPG…

186-2.png

2、/etc/opkg/distfeeds.conf下面的更改为国内源,然后保存即可。

更改为腾讯源:

src/gz openwrt_core https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/targets/x86/generic/packages
src/gz openwrt_base https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/i386_pentium4/base
src/gz openwrt_luci https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/i386_pentium4/luci
src/gz openwrt_packages https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/i386_pentium4/packages
src/gz openwrt_routing https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/i386_pentium4/routing
src/gz openwrt_telephony https://mirrors.cloud.tencent.com/openwrt/releases/22.03.2/packages/i386_pentium4/telephony

186-1.png

SSH更换国内源

sed -i 's/downloads.openwrt.org/mirrors.cloud.tencent.com\/openwrt/g' /etc/opkg/distfeeds.conf #替换
sed -i 's/mirrors.cloud.tencent.com\/openwrt/downloads.openwrt.org/g' /etc/opkg/distfeeds.conf #还原

以下是几个常用的国内源:

1、腾讯云:https://mirrors.cloud.tencent.com/openwrt

2、阿里云:https://mirrors.aliyun.com/openwrt

3、中科大:https://mirrors.ustc.edu.cn/openwrt

4、清华大学:https://mirrors.tuna.tsinghua.edu.cn/openwrt

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。