Error updating package list

Executing package manager

Downloading https://downloads.openwrt.org/releases/22.03.5/targets/ramips/mt7621/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.5/targets/ramips/mt7621/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/routing/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/telephony/Packages.gz

Errors

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.5/targets/ramips/mt7621/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.5/packages/mipsel_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/22.03.5/packages/mipsel_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/22.03.5/packages/mipsel_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/22.03.5/packages/mipsel_24kc/routing/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.5/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

The opkg update command failed with code 6.

Likely a faulty network config and/or connectivity.

Your normal connectivity from the router itself...

does DNS work? Is gateway set?
Can you download something with wget from the router's SSH console?

(opkg uses wget for the actual download. Your error means that the router itself does not have proper internet connectivity)

Your normal connectivity from the router itself...

My Internet works on clients connected to router

does DNS work?

I use stubby

Is gateway set?

In Wan? interface yes

Can you download something with wget from the router's SSH console?
(opkg uses wget for the actual download. Your error means that the router itself does not have proper internet connectivity)

No

Hi

if i remember right, in new OWRT versions, wget will prioritize IPv6 over IPv4
and as your screenshot show, IPv6 is not working
so, maybe it is best to shut down wan6 interface to disable IPv6 addresses and then opkg/wget will work in pure IPv4 env

I get this but package list shows


But when trying to install I get
image

Also get

please try this from SSH

wget -4 https://downloads.openwrt.org/releases/22.03.5/packages/mipsel_24kc/packages/iperf3_3.11-1_mipsel_24kc.ipk -P /tmp

it will download iperf package into /tmp dir

Works

ok, now you can install from /tmp
i think it will be ... hmm ?

opkg install /tmp/iperf3_3.11-1_mipsel_24kc.ipk

but, as i said, you need to disable IPv6 on your router
as you see, wget -4 works
so it will use IPv4

again, you need to disable IPv6, because something is clearly wrong !!!! with your IPv6
and wget will try to use IPv6 by default

1 Like

Ok
glad you solved

please mark proper answer as solution and topic as [SOLVED]

I installed 1 package and again I get this

This time wget ouput is differnet

@NPeca75

i will not repeat again

disable IPv6 !!!!!!!!

there is something wrong with your WAN

from SSH

ip r
ip a
root@OpenWrt:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc fq_codel state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
    inet6 fe80::xxxx:xxxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
3: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
4: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
5: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-lan state LOWERLAYERDOWN group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
7: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
    inet 192.168.100.3/24 brd 192.168.100.255 scope global wan
       valid_lft forever preferred_lft forever
    inet6 fe80::3c1a:11ff:fed2:56b1/64 scope link
       valid_lft forever preferred_lft forever
10: br-guest: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.1/29 brd 10.10.10.255 scope global br-guest
       valid_lft forever preferred_lft forever
    inet6 fe80::xxxx:xxxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
11: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/28 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
12: br-private: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.1/28 brd 192.168.2.15 scope global br-private
       valid_lft forever preferred_lft forever
    inet6 fe80::xxxx:xxxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
14: Wifi_Main_5Ghz: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
    inet6 fe80::xxxx:xxxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
15: Wifi_Main_2Ghz: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
    inet6 fe80::xxxx:xxxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
17: WifiPrivate5Ghz: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-private state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
    inet6 fe80::xxxx:xxxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
18: WiFiGuest: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-guest state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
    inet6 fe80::xxxx:xxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
19: Wifi_xxx_xxxx: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff permaddr xx:xx:xx:xx:xx:xx
    inet6 fe80::xxxx:xxx:xxxx:xxxx/64 scope link
       valid_lft forever preferred_lft forever
21: Wireguard: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
    link/none
    inet 10.2.0.2/32 brd 255.255.255.255 scope global Wireguard
       valid_lft forever preferred_lft forever
root@OpenWrt:~#
root@OpenWrt:~# ip r
10.10.10.0/29 dev br-guest proto kernel scope link src 10.10.10.1
xxx.xxx.xxx.xxx via 192.168.100.1 dev wan proto static
192.168.1.0/28 dev br-lan proto kernel scope link src 192.168.1.1
192.168.2.0/28 dev br-private proto kernel scope link src 192.168.2.1
192.168.100.0/24 dev wan proto kernel scope link src 192.168.100.3

still missing

ip r

there is NO default route
it is missing !!!

and this is nonsense
10.10.10.1/29 brd 10.10.10.255
it should be Broadcast Address: 10.10.10.7 for /29

and this
192.168.1.1/28 brd 192.168.1.255
it should be Broadcast Address: 192.168.1.15 for /28

sorry, but your config is a mess :frowning:

why /29 and /28 ?
whatever ... fix your WAN default route

Ooo please :frowning:

without default route, your OWRT could not direct traffic to internet

it should be something like

default via 192.168.100.1 dev wan

or whatever is your gateway on 100.x network
you missed that setting in WAN interface

https://openwrt.org/docs/guide-user/services/vpn/wireguard/extras#dynamic_connection

@RSHARM - I noted to you previously in another thread.

Just a FYI - Please consider not deleting your replies and not editing old posts to add new context/answers. It makes your threads extremely difficult to understand.

1 Like