Hi guys, I'm having trouble updating packages via opkg, due to an error shown:
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/23.05.0/targets/ath79/generic/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.0/targets/ath79/generic/packages/Packages.gz
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/base/Packages.gz
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/luci/Packages.gz
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/packages/Packages.gz
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/routing/Packages.sig
Signature file download failed.
Remove wrong Signature file.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/telephony/Packages.sig
Signature file download failed.
Remove wrong Signature file.
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.0/targets/ath79/generic/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/base/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/luci/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/packages/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/routing/Packages.sig, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.0/packages/mips_24kc/telephony/Packages.sig, wget returned 4.
* opkg_download: Check your network settings and connectivity.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
root@OpenWrt:~# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=59 time=4.707 ms
64 bytes from 1.1.1.1: seq=1 ttl=59 time=2.210 ms
64 bytes from 1.1.1.1: seq=2 ttl=59 time=3.683 ms
64 bytes from 1.1.1.1: seq=3 ttl=59 time=1.597 ms
64 bytes from 1.1.1.1: seq=4 ttl=59 time=1.737 ms
^C
--- 1.1.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 1.597/2.786/4.707 ms
151.101.2.132:
PING 151.101.2.132 (151.101.2.132): 56 data bytes
64 bytes from 151.101.2.132: seq=0 ttl=60 time=19.998 ms
64 bytes from 151.101.2.132: seq=1 ttl=60 time=16.406 ms
64 bytes from 151.101.2.132: seq=2 ttl=60 time=20.963 ms
64 bytes from 151.101.2.132: seq=3 ttl=60 time=18.185 ms
64 bytes from 151.101.2.132: seq=4 ttl=60 time=14.547 ms
64 bytes from 151.101.2.132: seq=5 ttl=60 time=14.524 ms
^C
--- 151.101.2.132 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 14.524/17.437/20.963 ms
I don't know where there is good documentation about it, but what we saw in your tests was that IPv4 addresses worked without an issue, but the DNS query for the downloads site returned an IPv6 address which you could not reach. This suggests that your ISP doesn't provide IPv6 or there is some other upstream issue with the IPv6 services. Therefore, by removing the IPv6 configuration, we told OpenWrt to only use IPv4, including for DNS queries.
This is not true in my experience, although I cannot rule out that some ISPs might charge for IPv6.
They/some charge to keep/static the /48 from randomly changing. Work arounds are SLACC and DHCPv6
Now, to be fair: I don't do IPv6 so I might have some of the initialisms completely wrong but my understanding is to get an IPv6 'address' working anywhere (e.g. new ISP) requires you to go through a lot of paperwork and justify why you want it.
For whatever reason, IPv6 is not working for the OP -- either the ISP is not truly dual-stack, or there are issues with their configurations. I would not expect that IPv6 would cost extra, though...
Static IPv6 vs dynamic would certainly be a service for which an ISP could charge.... just as many do for static IPv4 addresses. However, static vs dynamic IPv6 is not required for general operation and is likely not related to the problem experienced here.