owrt-ubi-installer icon indicating copy to clipboard operation
owrt-ubi-installer copied to clipboard

opkg: No such file or directory

Open r-gudmk opened this issue 1 year ago • 6 comments

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

r-gudmk avatar Nov 16 '24 15:11 r-gudmk

+1

buggsdummy avatar Dec 12 '24 17:12 buggsdummy

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.

knazarov avatar Jan 08 '25 23:01 knazarov

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 avatar Jan 09 '25 01:01 dangowrt

@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.

knazarov avatar Jan 09 '25 01:01 knazarov

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.

dangowrt avatar Jan 09 '25 01:01 dangowrt

I've contributed a pull request for anyone interested in fixing this problem: https://github.com/dangowrt/owrt-ubi-installer/pull/211

knazarov avatar Jan 09 '25 10:01 knazarov