I can't update the opkg update list!

Hi everyone,

I'm using openwrt installed device as a 2nd router in my home. My main router's local IP address is 192.168.1.1 and I have set the openwrt installed router IP 192.168.1.2 which is perfectly normal and it was working as rock solid by now. I don't know what was happened and didn't change anything but I can't update the opkg update list from software.

Use custom DNS servers is set 1.1.1.1 - 1.0.0.1

Error code:
The opkg update command failed with code 6 .

Please help me to solve this out.

Is your OpenWrt router connected via the WAN or LAN port?
Let's see your network and firewall configuration:

Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/network
cat /etc/config/firewall

Connected via LAN.
I'm using openwrt's default firewall settings didn't touch anything.

If you're connected via lan, you're not using any firewall.

Where did you put the DNS IPs?

Network>Interfaces>LAN>Advanced Settings>Use Custom DNS Servers.

Can you post the config for us to review?


Downloading https://downloads.openwrt.org/releases/22.03.0/targets/ipq40xx/generic/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/targets/ipq40xx/generic/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/base/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/routing/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.gz
Errors
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/targets/ipq40xx/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/22.03.0/packages/arm_cortex-a7_neon-vfpv4/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.0/packages/arm_cortex-a7_neon-vfpv4/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.0/packages/arm_cortex-a7_neon-vfpv4/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.0/packages/arm_cortex-a7_neon-vfpv4/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.0/packages/arm_cortex-a7_neon-vfpv4/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.
The opkg update command failed with code 6.


can you provide the config in text form, please. This is easier to review than the screen grabs (currently it is missing some info we need to see).

How can I to get it via Luci?

Typical error with such a setup is that you have not provided netmask and/or gateway address in the Lan settings of that dump router.

2 Likes

But I have already set the gateway address like 192.168.1.1

ssh into the router and then issue the command as shown above (when I first replied)

What @hnyman said.

Another option is to set the LAN interface to DHCP client.

Pls tell me how to do it.

Oddly, I reset the router then upload the same config folder which i already download before reset and installed same packages so it is working just like before! OpenWrt just kidding me.