Getting error while executing opkg update (wget returned 4)

`BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.7, r11306-c4a6851c72
 -----------------------------------------------------
root@Debjit_OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/packages/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/kmods/4.14.221-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.7/targets/ath79/generic/kmods/4.14.221-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.gz

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

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

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

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

Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/telephony/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.7/packages/mips_24kc/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/releases/19.07.7/targets/ath79/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.7/targets/ath79/generic/kmods/4.14.221-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/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.7/packages/mips_24kc/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.7/packages/mips_24kc/freifunk/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.7/packages/mips_24kc/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.7/packages/mips_24kc/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.7/packages/mips_24kc/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

root@Debjit_OpenWrt:~#`

ping -c 1 1.1.1.1 ; ping -c 1 downloads.openwrt.org

1 Like
2 Likes
BusyBox v1.30.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 19.07.7, r11306-c4a6851c72
 -----------------------------------------------------
root@OpenWrt:~# ping -c 1 1.1.1.1 ; ping -c 1 downloads.openwrt.org
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=60 time=48.927 ms

--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 48.927/48.927/48.927 ms
PING downloads.openwrt.org (168.119.138.211): 56 data bytes
64 bytes from 168.119.138.211: seq=0 ttl=49 time=145.368 ms

--- downloads.openwrt.org ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 145.368/145.368/145.368 ms
root@OpenWrt:~#

This is the ping reply. I tried resetting the router but nothing changes.

Do you have an IPv6? ip -6 addr

1 Like

I got it my ISP uses IPv4.So i just turned off the IPv6 in the WAN6 interface and it works. Thanx.

1 Like

Thanx got it.

1 Like

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