I am using a FB4040, running OpenWRT 21, to separate my home network from my ISP, because they have access to the router and the cabled TV box. Last week, they sent me a new router, a completely different model. The old one was capable of using custom settings for DNS servers, so that all outgoing traffic was independent from my ISP. The new router does not offer this possibility, it always will use the ISP's main DNS servers.
So I set the WAN interface in OpenWRT to use 208.67.220.220 and 208.67.222.222 (OpenDNS), which works great for my LAN, but not for OpenWRT itself: the package list can't be downloaded any more. I get the same error as discussed here: Problems downloading the package list - #4 by hnyman (That thread is closed, that's why I am opening a new one.)
The strange thing is, that OpenWRT is still very much capable of reaching "downloads.openwrt.org": the server can be pinged, tracerouted and resolved without any problem.
I am puzzled. What makes tools like "traceroute" reach the download server, that can not be used by "opkg" to download the package list? And why does "wget" tell me: "Failed to send request: Operation not permitted"?
It also does not make any difference, if I set the IP of the ISP router as DNS server to be used by the WAN interface: the package list can not be downloaded.
You haven't really explained your network config, and how the ISP router and the OpenWrt router are connected...
But still, based on the wget "not permitted ", I guess that you have IPv6 trouble: you have IPv6 address resolution enabled but do not have proper IPv6 traffic connectivity. Your wget is likely the small uclient-fetch tool (by default, unless you have installed the full gnu wget). Uclient-fetch has trouble with IPv6-IPv4 fallback.
You might try installing the full wget-sll package (e.g. download to PC, transfer .ipk to router via scp.) Alternatively, check the IPv6 connectivity and fix the config (likely in your ISP router).
When I upload the second package (wget depends on it) from my pc and push the "install" button, opkg wants to download it:
Installing libpcre (8.44-3) to root... Downloading https://downloads.openwrt.org/releases/21.02.1/packages/arm_cortex-a7_neon-vfpv4/base/libpcre_8.44-3_arm_cortex-a7_neon-vfpv4.ipk
##### Fehler
Failed to send request:
Operation not permitted Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/arm_cortex-a7_neon-vfpv4/base/libpcre_8.44-3_arm_cortex-a7_neon-vfpv4.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_install_pkg: Failed to download libpcre. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package libpcre.
This is bizarre: I upload a file to OpenWRT that is to be installed, and the system ignores it and tries to download the file again. What is going on there? How can I install the two file locally?
opkg install /tmp/libpcre_8.44-3_arm_cortex-a7_neon-vfpv4.ipk
Installing libpcre (8.44-3) to root...
Downloading https://downloads.openwrt.org/releases/21.02.1/packages/arm_cortex-a7_neon-vfpv4/base/libpcre_8.44-3_arm_cortex-a7_neon-vfpv4.ipk
Failed to send request: Operation not permitted
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.1/packages/arm_cortex-a7_neon-vfpv4/base/libpcre_8.44-3_arm_cortex-a7_neon-vfpv4.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_install_pkg: Failed to download libpcre. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package libpcre.