Skip to main content The opkg update command failed with code 6? Help needed! : r/openwrt

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
Go to openwrt

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:

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.

Get a complimentary home charger and standard installation with every new Ford electric vehicle. That’s the Ford Power Promiseᵀᴹ.
Clickable image which will reveal the video player: Get a complimentary home charger and standard installation with every new Ford electric vehicle. That’s the Ford Power Promiseᵀᴹ.
Sort by:
Best
Open comment sort options

Try adding

--no-check-certificate

It may be part of the letsencrypt CA expiry.

same error sadly :/

More replies

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

More replies
More replies
Edited

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!

More replies
More replies

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.

More replies
[deleted]

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