OpenWrt news, tools, tips and discussion. Related projects, such as DD-WRT, Tomato and OpenSAN, are also on-topic.
The opkg update command failed with code 6? Help needed!
Hello everyone!
My opkg update both thro LUCI and CLI doesn't wanna update, while my internet is getting routed fine.
It's outputting this error:
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Collected errors:
opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/targets/ramips/mt7621/packages/Packages.gz, wget returned 4.
opkg_download: Check your network settings and connectivity.
opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/base/Packages.gz, wget returned 4.
opkg_download: Check your network settings and connectivity.
opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/luci/Packages.gz, wget returned 4.
opkg_download: Check your network settings and connectivity.
opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/packages/Packages.gz, wget returned 4.
opkg_download: Check your network settings and connectivity.
opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/routing/Packages.gz, wget returned 4.
opkg_download: Check your network settings and connectivity.
opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4.
opkg_download: Check your network settings and connectivity.
I have a setup like this where the MI4AG and LEDE routers are on 2.x and same submask (the LEDE has dhcp on, disabled that for the mi4ag)
They route the internet fine, I just cannot use opkg tho :/
Any tips? I'm assuming I'm just horrible at setting up this multi router setup I have, as I'm clueless regarding networking.
Any help is appreciated! Thank you!
EDIT: Pinging doesn't work either thro Diagnostics tab, posted errors down below in the comments.

Try adding
--no-check-certificate
It may be part of the letsencrypt CA expiry.
same error sadly :/
They route the internet fine
What about DNS?
For example, you can ping 8.8.8.8
, but can you ping google.com
?
Yes, I've forgot to mention this! When using the pinging in the Diagnostics tab, I'm getting this error when trying to ping openwrt.org:
ping: bad address 'openwrt.org
or
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network unreachable
or
ping: bad address 'google.com'
I am using the IPv4 pinging from there
On the mi4 Lan interface, make sure the gateway address of the lede router is populated. It would make sense that clients are able to route because they get gateway info from the lede dhcp , but the mi4 is probably staticly set.
Oh, good catch! I missed that dhcp wasn't enabled.
Gateway in the Mi router (openwrt) is set to my LEDE router, however to no avail :/
tyvm for the tip tho!
If anyone else runs into this problem.
I had to disable WAN6 interface, since for some reason my Modem/router was not routing IPv6 from inside (between OpenWRT and Modem) to external.
Had the same problem, disable IPV6 in every device in network > interface > devices. Restart the router.
Late to the party but what actually fixed it for me was changing the timezone and matching the dates within the router. nothing else I did fixed it