Can't download package list after installation of new ISP router

Hello,

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.

What can I do to make it work again?

Many thanks in advance!

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).

1 Like

You are right: adding parameter "-4" to wget makes it work as expected!

Now I only need to know how to make opkg do what is needed: I downloaded two files manually to my pc:

wget-ssl_1.21.1-1_arm_cortex-a7_neon-vfpv4.ipk
libpcre_8.44-3_arm_cortex-a7_neon-vfpv4.ipk

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?

1 Like

Run opkg install /path/to/file.pkg from cli instead.

No change:

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.

sounds similar as in

In both of those cases, reboot helped to clear some opkg internal cache (in /tmp ramdisk?)

You're my hero of the day! :slight_smile: Rebooting did break the vicious circle. Many thanks for the clue!

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