The opkg update command failed with code 6

Hello

First of all some general Info on my hardware:

Router: Xiaomi Mi Router 4A (100M International Edition V2)
Firmware Version: OpenWrt SNAPSHOT / LuCI openwrt-24.10 branch 24.298.52515~e34c268

Because it is a Snapshot version I've installed LuCI via command line after the initial setup. (Unfortunately there is still no regular release version for that router yet)

To the Problem:

I want to use DNS over HTTPS and install the necessary packages. When I go in System > Software > Update Lists I get the following error:

Text version

Commands:
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages/Packages.gz

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

Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/kmods/6.6.58-1-46fbfb34689680c4bac013d3e4a3f326/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/kmods/6.6.58-1-46fbfb34689680c4bac013d3e4a3f326/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz

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

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

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

Errors:

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz, wget returned 8.

I've looked at the errors a little more closely and it seems like the Packages.gz file does no exist. Opening that link in the browser does throw me a 404 error, but if I remove Packages.gz from the URL and end up in the main directory I DO see a Packages.adb but NOT a Packages.gz .....

Packages.gz link: https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages/Packages.gz
Link without the "Packages.gz" in the URL: https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages

Is there an issue with the OpenWRT infrastructure at the moment? Or is the issue something else?

64MB device, there's a high risk of running into OOM iisues, esp with the new package manager.

Is routers time set up correctly?

already asked, on reddit :slight_smile:

I don't have any connection issues. Everything has been smooth sailing so far.

The issue is that the Packages.gz file does not seem to be reacheable on the link...

Yeah it is. I've installed the Snapshot version of the Firmware and then used the Snapshot Sysupgrade.

But the Link it shows me in the log is not reachable, no on my phone or any other device. It throws me a 404 for the Packages.gz

who said anything about connection issues ?

we're saying the deivce will be barely usable running a snapshot.

Poster of the other thread complained about connection issues. You said it could be an out of memory problem.

However I am still using the stock OpenWRT firmware with no additional packages and still have enough resources for what I intend to do:

This can't be the problem, especially because the Packages.gz link does not seem to work. Enough memory is available...

I've misread your comment.

I've checked the time on my router again and realized it was in the wrong timezone. I've since corrected the issue but I still encounter the same problem... :frowning:

What has reddit to do with my problem? :thinking:

Snapshot with LuCI from the 24.10 branch? And it shows opkg in the software update window? Something is way out of date, which would explain the missing Packages.gz files, they no longer exist with the current apk-based snapshot builds.

You'll be better off trying to do an update using either owut or Firmware Selector and not messing with new package installation until you have upgraded the underlying OS.

1 Like

You are apparently mixing versions somehow. That does not work.
Current main/master SNAPSHOT builds are since November using the apk package manager (with packages.adb index file) and not the old opkg (with Packages.gz). You can't download opkg packages for master any more.

24.10 packages should not be used in main/master and vice versa.

As you have opkg, you likely/possibly have an old main/master build that still used opkg (until October), which firmware you need to sysupgrade to newer apk-enabled one.

Or you can sysupgrade down to a proper 24.10 build with opkg (and downloads from 24.10 packages, not from master snapshot dir).

3 Likes

Would it be ok to just put a the new sysupgrade on top of it?

I did get the router in October and installed the snapshot factory and sysupgrade.

I didn't upgrade since them because it would have been quite the task to constantly reinstall LuCI due to only snapshots being available....

How I understand it I have to install the new OpenWRT snapshot to use the new package manager and install the packages.

However you mentioned it is possible to use packages of the 24.10 build.... how would I do that?

Sysupgrade using the 24.10-RC2 image.

2 Likes

And there will be 24.10.0-rc3 in 1-2 days.

(rc3 was git tagged 7 hours ago, and buildbot is currently crunching builds into https://downloads.openwrt.org/releases/24.10.0-rc3/targets/
Formal rc3 announcement likely in 1-2 days)

1 Like

Is the "rc" image a release version? Including LuCi?

It is a release candidate, including LuCI.

1 Like

That's very exciting news for me!

But I'm unsure if the image you're talking about is for my router. I've been using these images for my router because it is the v2 version:

xiaomi_mi-router-4a-100m-intl-v2-initramfs-kernel.bin
xiaomi_mi-router-4a-100m-intl-v2-squashfs-sysupgrade.bin

From here: https://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/

However the link you sent here only shows the following versions:

xiaomi_mi-router-4a-gigabit-v2-initramfs-kernel.bin
xiaomi_mi-router-4a-gigabit-initramfs-kernel.bin

Link: https://downloads.openwrt.org/releases/24.10.0-rc3/targets/ramips/mt7621/

This doesn't seem to be for my device because mine is the "4a-100m-intl-v2" while the one in your link is the image for the v2 of the gigabit version...

Or did I miss something? :thinking:

You looked at the wrong subdirectory, as the correct one is not yet there.

You missed the fact that I told above:

Buildbot is still compiling the images. It may take a day for all the 50+ targets to have images built.
Your device's images will appear into the correct subdirectory of https://downloads.openwrt.org/releases/24.10.0-rc3/targets/ramips/ when they are ready. ( mt76x8 builds are still in the build queue https://buildbot.openwrt.org/images/#/builders/245 )

You can just wait for the rc3 annoucement...

2 Likes