Cannot install wpad-mbedtls

I am using OpenWrt 23.05.0-rc2. How do I install wpad-mbedtls?

root@OpenWrt:~# opkg list-installed | grep wpad
wpad-basic-mbedtls - 2023-03-29-bb945b98-1.2
root@OpenWrt:~# opkg install wpad-mbedtls
Installing wpad-mbedtls (2023-03-29-bb945b98-1.2) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with wpad-mbedtls:
 * check_conflicts_for:         wpad-basic-mbedtls *
 * opkg_install_cmd: Cannot install package wpad-mbedtls.
root@OpenWrt:~# opkg remove wpad-basic-mbedtls
Removing package wpad-basic-mbedtls from root...
root@OpenWrt:~# opkg install wpad-mbedtls
Installing wpad-mbedtls (2023-03-29-bb945b98-1.2) to root...
Downloading https://downloads.openwrt.org/releases/23.05.0-rc2/packages/arm_cortex-a7_neon-vfpv4/base/wpad-mbedtls_2023-03-29-bb945b98-1.2_arm_cortex-a7_neon-vfpv4.ipk
Installing libnl-tiny2023-07-01 (2023-07-01-d433990c-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.0-rc2/packages/arm_cortex-a7_neon-vfpv4/base/libnl-tiny2023-07-01_2023-07-01-d433990c-1_arm_cortex-a7_neon-vfpv4.ipk
Collected errors:
 * check_data_file_clashes: Package libnl-tiny2023-07-01 wants to install file /usr/lib/libnl-tiny.so
        But that file is already provided by package  * libnl-tiny2023-04-02
 * opkg_install_cmd: Cannot install package wpad-mbedtls.
root@OpenWrt:~# opkg remove libnl-tiny2023-04-02
No packages removed.
Collected errors:
 * print_dependents_warning: Package libnl-tiny2023-04-02 is depended upon by packages:
 * print_dependents_warning:    iw
 * print_dependents_warning:    netifd
 * print_dependents_warning:    odhcpd-ipv6only
 * print_dependents_warning:    rpcd-mod-luci
 * print_dependents_warning:    libiwinfo20230121
 * print_dependents_warning: These might cease to work if package libnl-tiny2023-04-02 is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.

It used to be easier on previous OpenWrt versions. Now it ends up with circular dependencies error. Or maybe I do not fully understand how opkg works.

Why not use the firmware selector tool to build a firmware already with wpad-mbedtls?

1 Like

The problem is that libnl-tiny has been upgraded recently, so you need to replace libnl-tiny and all of the packages that use it with the new ones. By far the easiest way to do this is to replace the whole ROM with a new build. You can also use auc to do this.

Then once everything is on the same page with respect to libnl-tiny, wpad-basic can be removed and replaced with the full version.

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