opkg: No such file or directory
After fixing the public key issue the script fails with:
./build_installer.sh: line 198: /tmp/owrt-ubi-installer/openwrt-ib/staging_dir/host/bin/opkg: No such file or directory
I'm running it on Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux
+1
It seems like this is because OpenWrt is moving away from opkg (see this topic for some details).
I've succeeded with adding opkg by hacking its installation back to owrt-ubi-installer's Containerfile. But it ended up breaking down the line because the snapshot release of OpenWrt which this ubi installer requires, no longer ships opkg.conf.
I guess, the right course of action will be to migrate to APK.
Note that APK is included in the latest imagebuilder that ibu installer uses. So it's likely a matter of replacing "opkg" with "apk" and tuning some parameters.
Yes, for 25.xx release we will have to migrate to APK, the 24.10.0 release is still based on OPKG and I will release the next version of the installer based on 24.10.0 once it gets released.
@dangowrt so, if we pin the version of openwrt to 24.10.0 instead of "snapshot" then the issue will be fixed for now?
I've actually tried to migrate to APK in my own branch, but found out that there are errors arising from postinstall scripts of packages. And that is something that hasn't been solved yet in upstream.
so, if we pin the version of openwrt to 24.10.0 instead of "snapshot" then the issue will be fixed for now?
Yes, we can use 24.10.0-rc5 for now, and then 24.10.0 once it gets released.
I've contributed a pull request for anyone interested in fixing this problem: https://github.com/dangowrt/owrt-ubi-installer/pull/211