当前位置:首页 > 原创教程 > OpenWrt更换软件源

OpenWrt更换软件源

原创教程 / 星之宇 / 2022-2-26 14:25 / 浏览:280 / 评论:0

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

目前有 0 条评论

    • QQ
    • 填好QQ,点击获取自动填写昵称和邮箱
    • 昵称
    • 邮箱
    • 网址