Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cannot install package <x>' when attempting to build 23.05.2 x86-64 image via image builder #183

Open
cr08 opened this issue Apr 2, 2024 · 3 comments

Comments

@cr08
Copy link

cr08 commented Apr 2, 2024

Doesn't seem to be too much documentation on how to proceed with this process so just figuring things out as I go along. Determined that the files in this repo do match with using the stock OpenWRT image builder. I'm trying to do so with the latest release image 23.05.2 and the initial process seems to go fine but eventually gets stuck on the following errors.

 * opkg_install_cmd: Cannot install package kmod-input-polldev.
 * opkg_install_cmd: Cannot install package kmod-lib80211.
 * opkg_install_cmd: Cannot install package kmod-libertas-usb.
 * opkg_install_cmd: Cannot install package kmod-p54-common.
 * opkg_install_cmd: Cannot install package kmod-p54-usb.
 * opkg_install_cmd: Cannot install package kmod-rt2500-usb.
 * opkg_install_cmd: Cannot install package kmod-rt73-usb.
 * opkg_install_cmd: Cannot install package kmod-rtl8187.
 * opkg_install_cmd: Cannot install package libopenssl1.1.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-ar.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-cs.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-de.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-es.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-fr.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-pt.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-ro.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-ru.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-tr.
 * opkg_install_cmd: Cannot install package luci-i18n-wireguard-zh-cn.
 * opkg_install_cmd: Cannot install package luci-i18n-wol-en.
 * resolve_conffiles: Existing conffile /home/cr08/openwrt-imagebuilder-23.05.2-x86-64.Linux-x86_64/build_dir/target-x86_64_musl/root-x86/etc/ppp/chap-secrets is different from the conffile in the new package. The new conffile will be placed at /home/cr08/openwrt-imagebuilder-23.05.2-x86-64.Linux-x86_64/build_dir/target-x86_64_musl/root-x86/etc/ppp/chap-secrets-opkg.
 * check_data_file_clashes: Package libustream-mbedtls20201210 wants to install file /home/cr08/openwrt-imagebuilder-23.05.2-x86-64.Linux-x86_64/build_dir/target-x86_64_musl/root-x86/lib/libustream-ssl.so
        But that file is already provided by package  * libustream-wolfssl20201210
 * opkg_install_cmd: Cannot install package libustream-mbedtls.
make[2]: *** [Makefile:189: package_install] Error 255
make[1]: *** [Makefile:144: _call_image] Error 2
make: *** [Makefile:262: image] Error 2

Is there possibly a better (but still newer than the existing SmoothWAN release images) version of OpenWRT to use or a solution to resolve this with with the existing version/setup?

Thanks!

@cr08
Copy link
Author

cr08 commented Apr 3, 2024

Doing some more digging and testing. Looks like all the listed packages it can't install no longer exist in the repos for newer OpenWRT versions and are called explicitly in build.sh here in the SmoothWAN repo. I didn't do an exhaustive check but a few packages seem to have been removed because their functionality was replaced by something else.

In the meantime I did a quick and dirt edit and added the following on the end of the package list:

-kmod-input-polldev -kmod-lib80211 -kmod-libertas-usb -kmod-p54-common -kmod-p54-usb -kmod-rt2500-usb -kmod-rt73-usb -kmod-rtl8187 -libopenssl1.1 -luci-i18n-wireguard-ar -luci-i18n-wireguard-cs -luci-i18n-wireguard-de -luci-i18n-wireguard-es -luci-i18n-wireguard-fr -luci-i18n-wireguard-pt -luci-i18n-wireguard-ro -luci-i18n-wireguard-ru -luci-i18n-wireguard-tr -luci-i18n-wireguard-zh-cn -luci-i18n-wol-en

The image builder completed successfully. I still need to test the actual image and make sure it boots/operates properly.

@cr08
Copy link
Author

cr08 commented Apr 3, 2024

Did some brief testing in a VM this morning with a few attached interfaces (built in bridged ethernet for WAN plus a USB ethernet dongle for LAN and a USB LTE card to test there) and knock on wood everything I've tested looks to be solid with this setup. It's not an exhaustive test of course.

Here's my modified build.sh file and I'm happy to submit a PR for it if desired: https://github.com/cr08/SmoothWAN/blob/owrt-23.05.3-build-fix/devconfigs/x86_64/build.sh

One thing I didn't mention earlier is there was also an earlier error about conflicting wolfssl and mbedtls libraries. The common consensus on a few posts I found were to get rid of wolfssl and let the others take over. That modification is included here as well.

@TalalMash
Copy link
Member

Thanks for the report, the configuration is migrated from full OpenWrt builds in earlier hence the mess 😊.
Next version is an AIO (IPK) package with removed extras (e.g adguard, ntopng), these will be seperate but installed on the image version which is only for Pi/PC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants