So tried the other night to update 2 OpenWRT devices. Both returning wget error 5.
Any ideas?
Thanks
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/targets/ath79/generic/packages/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/base/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/luci/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/packages/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/routing/Packages.gz, wget returned 5.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.3/packages/mips_24kc/telephony/Packages.gz, wget returned 5.
did you have extra wget package installed? I had extra wget packages included in my custom image and opkg gave download error. Once they were removed, opkg is back to normal
Just connected and confirmed that this is still an issue.
Any ideas? I've had this before and the only way I fixed it was with a fresh install of OpenWRT. This keeps happening to me.
The only difference between me and I guess everyone else is, these devices are offline all the time as in NO internet access until I want to update them.
Can you clarify your statement here... what does "update" mean in your context?
Install new packages using the opkg install feature?
upgrade the entire OpenWrt firmware (using sysupgrade)
or upgrade existing packages installed on the device?
If 1, that will, of course, require normal opkg functionality so the error you are seeing is relevant and should be solved.
OTOH, if you're talking about 2, opkg doesn't figure into that process at all anyway, so the problem can safely be ignored.
Finally, if you mean 3, that is not recommended and will likely cause you more issues in the future. See the following warning:
Upgrading packages (via the CLI opkg upgrade command or the LuCI Upgrade... button) can result in major problems. It is generally highly discouraged, unless you know what you are doing or if there is specific instruction to do so.
Also, regarding the wget error itself...
@lleachii asked some good questions -- please answer those.
but if this is a standard release image, there is one other situation that can cause this to happen -- if you restored a backup that contained all of /etc or brought over older certs, it could certainly cause this problem. Therefore, please let us know how you arrived at your current configuration -- both in terms of the image itself and the actual running conifg.