XIKEW.COM - 公读宝典 - OpenWRT开发 修改更新源 - 公读宝典, - 查阅了一些资料只给了一些简单的修改配置说明,这里记录一下遇到的坑

OpenWRT开发 修改更新源
OPENWRT 5/11/2020 12:56:24 PM 阅读:85

查阅了一些资料只给了一些简单的修改配置说明,这里记录一下遇到的坑

源地址

了解关键信息

  • 打开/etc/opkg/distfeeds.conf,举例如下:
src/gz reboot_core http://downloads.lede-project.org/snapshots/targets/ar71xx/generic/packages
src/gz reboot_base http://downloads.lede-project.org/snapshots/packages/mips_24kc/base
src/gz reboot_luci http://downloads.lede-project.org/snapshots/packages/mips_24kc/luci
src/gz reboot_mtk http://downloads.lede-project.org/snapshots/packages/mips_24kc/mtk
src/gz reboot_packages http://downloads.lede-project.org/snapshots/packages/mips_24kc/packages
src/gz reboot_routing http://downloads.lede-project.org/snapshots/packages/mips_24kc/routing
src/gz reboot_telephony http://downloads.lede-project.org/snapshots/packages/mips_24kc/telephony

这里获得几个信息: 1.Core的版本是 ar71xx 2.CPU是 mips_24kc

不过简单思考,我们只要替换几个地址就可以了

src/gz reboot_core http://mirrors.bfsu.edu.cn/openwrt/snapshots/targets/ar71xx/generic/packages
src/gz reboot_base http://mirrors.bfsu.edu.cn/openwrt/snapshots/packages/mips_24kc/base
src/gz reboot_luci http://mirrors.bfsu.edu.cn/openwrt/snapshots/packages/mips_24kc/luci
# src/gz reboot_mtk http://mirrors.bfsu.edu.cn/openwrt/snapshots/packages/mips_24kc/mtk
src/gz reboot_packages http://mirrors.bfsu.edu.cn/openwrt/snapshots/packages/mips_24kc/packages
src/gz reboot_routing http://mirrors.bfsu.edu.cn/openwrt/snapshots/packages/mips_24kc/routing
src/gz reboot_telephony http://mirrors.bfsu.edu.cn/openwrt/snapshots/packages/mips_24kc/telephony

我们发现mtk这个地址不存在,所以直接注释掉 接下来 opkg update 更新下源就可以了 :)