[Solved] The opkg update command failed with code 1

64 bytes from 168.119.138.211: seq=0 ttl=52 time=49.108 ms
64 bytes from 168.119.138.211: seq=1 ttl=52 time=48.616 ms
64 bytes from 168.119.138.211: seq=2 ttl=52 time=48.342 ms
64 bytes from 168.119.138.211: seq=3 ttl=52 time=48.407 ms
64 bytes from 168.119.138.211: seq=4 ttl=52 time=48.647 ms
64 bytes from 168.119.138.211: seq=5 ttl=52 time=48.802 ms
64 bytes from 168.119.138.211: seq=6 ttl=52 time=48.570 ms
64 bytes from 168.119.138.211: seq=7 ttl=52 time=48.652 ms

Looks like it should be working.

This could be a ipv6 issue.

Try deleting your wan6 interface.

Ok, I deleted wan6, now what should I do?

opkg update

Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/targets/ramips/mt7621/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.0-rc4/targets/ramips/mt7621/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.0-rc4/targets/ramips/mt7621/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

run it again, to see if it won't fail on the 1st file this time.

I think it happenedDownloading https://downloads.openwrt.org/releases/23.05.0-rc4/targets/ramips/mt7621/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_core Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/targets/ramips/mt7621/packages/Packages.sig Signature check passed. Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/base/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_base Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/base/Packages.sig Signature check passed. Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/luci/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_luci Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/luci/Packages.sig Signature check passed. Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/packages/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_packages Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/packages/Packages.sig Signature check passed. Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/routing/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_routing Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/routing/Packages.sig Signature check passed. Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/telephony/Packages.gz Updated list of available packages in /var/opkg-lists/openwrt_telephony Downloading https://downloads.openwrt.org/releases/23.05.0-rc4/packages/mipsel_24kc/telephony/Packages.sig Signature check passed.

It is working now. It was probably the ipv6 that was causing the problem.

Now you can install packages.

But, you should upgrade to 23.05.0 (stable, not rc) since it is out now.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

2 Likes

deleted.

@psherman beat me to it.

thank you both

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