本文最后更新于 450 天前,其中的信息可能已经有所发展或是发生改变。
我有个小路由是ar71xx
经常因为某些乱七八糟的原因,opkg更新不成功
官方源地址:官方源
国内源地址1.openwrt.herokuapp.com
2.mirrors.ustc.edu.c
3.
然而好像无论哪里都一样蛮,所以打算自建一个吧
wget https://downloads.openwrt.org/releases/19.07-SNAPSHOT/ -r -np -e robots=off
我先把它全部下载一遍,然后把软件源指向自己的服务器,不知道行不行,下载了一整天了,还没下完。
very难搞
替换软件源几行代码
src/gz reboot_core http://mirrors.ustc.edu.cn/lede/releases/19.07.3/targets/ar71xx/generic/packages
src/gz reboot_base https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/base
src/gz reboot_luci https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/luci
src/gz reboot_packages https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/
src/gz reboot_routing https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/
src/gz reboot_telephony https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/
src/gz beta_base https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/base/
src/gz beta_luci https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/luci
src/gz beta_management https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/management
src/gz beta_packages https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/packages/
src/gz beta_routing https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/routing
src/gz beta_telephony https://archive.openwrt.org/snapshots/trunk/ramips/mt7621/packages/telephony
src/gz barrier_breaker_base http://downloads.openwrt.org/snapshots/trunk/ramips/mt7621/packages/base
src/gz barrier_breaker_luci http://downloads.openwrt.org/snapshots/trunk/ramips/mt7621/packages/luci
src/gz barrier_breaker_management http://downloads.openwrt.org/snapshots/trunk/ramips/mt7621/packages/management
src/gz barrier_breaker_oldpackages http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7621/packages/oldpackages
src/gz barrier_breaker_packages http://downloads.openwrt.org/snapshots/trunk/ramips/mt7621/packages/packages
src/gz barrier_breaker_routing http://downloads.openwrt.org/snapshots/trunk/ramips/mt7621/packages/routing
src/gz barrier_breaker_telephony http://downloads.openwrt.org/snapshots/trunk/ramips/mt7621/packages/telephony
OPKG update 排错记录
更新的时候返回值 wget returned 4
主要是因为使用了 https,更换为http
或者把源更换为
http://mirrors.ustc.edu.cn/openwrt
应该也可以
其次,输入命令
vim /etc/opkg.conf
把
option check_signature
加个井号注释掉
#option check_signature
返回值 wget returned 4
没救了,把软件下载下来命令行编译吧
或者装个 x-wrt 的固件也不错
https://downloads.x-wrt.com/