Software Update Fails WGET Error 4 Operation Not Permitted?

A few files download then the rest fail. It always fails at the same point. Below is the output of the failures. If I try to use opkge update, same result. If I try to download the first failing file download from browser if is downloaded. It is when I try via my router it fails.

Downloading http://downloads.openwrt.org/releases/19.07.4/targets/kirkwood/generic/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.4/targets/kirkwood/generic/packages/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.4/targets/kirkwood/generic/kmods/4.14.195-1-d96562fcaaca3739b2c738f07586a1b3/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.4/targets/kirkwood/generic/kmods/4.14.195-1-d96562fcaaca3739b2c738f07586a1b3/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/base/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/base/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/luci/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/luci/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/packages/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/routing/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/routing/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/telephony/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/telephony/Packages.gz

Errors

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
Failed to send request: Operation not permitted
Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.4/targets/kirkwood/generic/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.4/targets/kirkwood/generic/kmods/4.14.195-1-d96562fcaaca3739b2c738f07586a1b3/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/base/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/luci/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/routing/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.4/packages/arm_xscale/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

Basically I can flash my router with OpenWRT but never update it right now, not good.

It appears to not be connected to the Internet. Does ping downloads.openwrt.org work?

1 Like

Interesting, can't ping anything by IP even on the local network. I have set default gateway correctly. So not sure what is going on. The only interface is the LAN interface, given this will be an AP only once configured and updated.

ARP cache shows my desktop can be seen by the router, so why would I now be able to ping from router to anything? Everything can ping the router. Firewall rule?

When running OpenWrt as a LAN device, add option gateway and option dns to the LAN configuration. These should point at the main router.

Those settings only affect how the OpenWrt OS will reach the Internet. Users of the AP are bridged through to the main router regardless.

1 Like

Right, checking now the entire static IP setup for the LAN interface. Given arp entries, at least I know the device is on the wire and talking. But since I can't ping anything, something is not legit with the IP setup.

I have another router running OpenWRT, but don't recall having this much trouble setting it up.

Ok, I validated the entry for the router in my DHCP and DNS setup (have dedicated DHCP and DNS for local LAN). Then I changed the problem router to DHCP, and restarted the LAN interface. Now the software update seems to be working. Weird... because I could SSH into it fine from my desktop, etc. And even after I static set the gateway and DNS entries it refused to ping. So something was not updating or refreshing as expected.

I got a bunch of

Failed to download http://downloads.openwrt.org wget returned 4.

myself.
Turned out was banIP that was working a little too well, once I disabled it everything worked.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.