Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.2/targets/ramips/mt76x8/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.2/packages/mipsel_24kc/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
what should I type in the command line in the next step can you help me?
But that is maybe not so interesting any more. I got originally interested as in your first example the only errors seemed to come from the .sig files (while .gz files might have succeeded?). But now you got the error regarding the main package lists.
You likely should use the newer release, which has been released after the message you reference above was written. (But I do not think that it is the reason for your problems.) In general, your router seems to be a bit problematic, as it has various OEM versions R4A, R4AC, and flash layout varies).
This is more likely something about DNS/DHCP etc.
Why does your DNS settings (in /etc/config/dhcp) have list server '192.168.1.1' ?
That is not in the default settings.
To my knowledge that item lists the possible upstream servers that you want to use, and as your own router is 192.168.1.1, that looks really suspicious to me.
Your OpenWrt router is directly connected to ISP, right? No other routers in between?
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.2/packages/mipsel_24kc/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
Yes.
Someone else on the forum told me to set this up. But it didn't work. After re-flashing the firmware, it went back to default settings but still getting the same error.
I think I should return this router to amazon and buy the gigabit version. I will try to restore it to its original firmware. I hope I can return it.
There are 2 versions of this router. One is 100M as the screenshot you posted shows. However you mentioned that this is the 100M INT. Can you verify which version is this router and which firmware version you flashed?
TLDR; I fixed this problem superficially by adding "168.119.138.211 downloads.openwrt.org" to my hosts file.
I fixed this problem again on my system by rebooting my router/nameserver.
Sorry to necro-post but I have just come across this same issue today and have some observations that may be useful.
I have a DIR-1960-A1 router which I am installing OpenWRT on. After diagnosing this problem (wget returned 4) I did a full reset on the OpenWRT install (stable 22.03.5) - so no custom settings whatsoever.
"ping -4 downloads.openwrt.org" works fine
"ping -6 downloads.openwrt.org" works fine
I was able to get "opkg update" to work by putting into my /etc/hosts file, the line:
168.119.138.211 downloads.openwrt.org
I did not disable IPv6. Unfortunately I did not try putting into my hosts file (now I can't reproduce the problem):
2a01:4f8:251:321::2 downloads.openwrt.org
After restoring my hosts file back to original and verifying that the problem returned I rebooted my pfsense router (which is also a DNS cache). This FIXED THE PROBLEM. I'm not sure why, perhaps it's DNS server simply started returning the IPv4 address for downloads.openwrt.org instead of the IPv6 address.
Very Strange: I set up an identical router on Friday and had no problems. What changed over the weekend?
I'll leave this as a comment. The modification to the hosts file is probably simpler and more targeted than disabling IPv6 completely so - a simple fix, the punters might like to try.