Openwrt opkg update wget return 8
這一個月發現用opkg update 個openwrt 有以下error,
- 部機可以上到網, 所以應該唔係network 問題
- 可以ping 到www.openwrt.org 所以應該唔係dns 問題
(因為我曾懷疑是OpenDNS block 左個connection)
爬文:https://forum.openwrt.org/viewtopic.php?id=57593
爬了一會文發現原本的version (attitude adjustment) 已經不再更新,而package 更加移走了。所以opkg update 不能更新。
故我的openwrt 要做sysupgrade.. 今次去download 返個sysupgrade image
https://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/
找回原本個router 的image version ... 不要弄錯...
再在Luci 做sysupgrade 即可。
不過記得要抄走自己的script 先... 我唔記左.. 乜都冇... 首先要改返咁個opkg.conf
原文: https://forum.openwrt.org/viewtopic.php?id=55334
更新要點:
1. Privoxy 改左config 位罝 由/etc/privoxy/config 轉左去 /etc/config/privoxy
2. 若果之前keep config 應該安返d package 就可以用返,不過唔需要用好多時間。
- 部機可以上到網, 所以應該唔係network 問題
- 可以ping 到www.openwrt.org 所以應該唔係dns 問題
(因為我曾懷疑是OpenDNS block 左個connection)
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/Packages.gz.
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/Packages.gz, wget returned 8.
root@OpenWrt:~#
爬文:https://forum.openwrt.org/viewtopic.php?id=57593
爬了一會文發現原本的version (attitude adjustment) 已經不再更新,而package 更加移走了。所以opkg update 不能更新。
故我的openwrt 要做sysupgrade.. 今次去download 返個sysupgrade image
https://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/
找回原本個router 的image version ... 不要弄錯...
再在Luci 做sysupgrade 即可。
不過記得要抄走自己的script 先... 我唔記左.. 乜都冇... 首先要改返咁個opkg.conf
原文: https://forum.openwrt.org/viewtopic.php?id=55334
cat /etc/opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/telephony
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz chaos_calmer_base http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management
src/gz chaos_calmer_packages http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/telephony
更新要點:
1. Privoxy 改左config 位罝 由/etc/privoxy/config 轉左去 /etc/config/privoxy
2. 若果之前keep config 應該安返d package 就可以用返,不過唔需要用好多時間。
Comments