Luci has dependency of libiwinfo20181126 when installed with opkg

Luci has dependency of libiwinfo20181126 when installed with opkg.

root@OpenWrt:~# opkg install luci
Installing luci (git-20.099.26404-e9449d9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci_git-20.099.26404-e9449d9-1_all.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 * 	libiwinfo20181126
 * opkg_install_cmd: Cannot install package luci.
root@OpenWrt:~#

Is there any reason why it requires such an old package dependency?

I have successfully installed libiwinfo2020xxxx - means lastest version, still the old version dependency did not disappear. Is there any reason behind this? How can I proceed?

The reason I am asking this here is that - by amending --force-depends to opkg command, the installation passes but later when accessing luci I get an error which I further specified down here: https://github.com/openwrt/luci/issues/3773

Thanks in advance for any tips/solutions.

1 Like

The latest build of luci is compiled against the latest libiwinfo on master/trunk, so a opkg update before you install luci should fix your problem.

The binary interface of libiwinfo changed with the latest version, so thats why you will see the dependency error and the other problem as long as luci isn't compiled against the new libiwinfo.

snapshot package dependencies
https://openwrt.org/faq/cannot_satisfy_dependencies

@juppin of course I did opkg update before trying to install luci. - Did not help.

@trendy -> I followed the advises. I did it all the very hour after installing the snapshot image - got the error so I moved to --force-depends -> went well but, as I mentioned in the original post -> https://github.com/openwrt/luci/issues/3773 <- this is what I get.

Is it a new installation or upgrade while keeping settings?
I installed a snapshot about a month ago on my RPi4 (clean installation) and it worked fine. From what I see in the opkg info luci I don't have this dependency:

Package: luci
Version: git-20.062.71982-95804e5-1
Depends: libc, uhttpd, luci-mod-admin-full, luci-theme-bootstrap, luci-app-firewall, luci-app-opkg, luci-proto-ppp, libiwinfo-lua, luci-proto-ipv6, rpcd-mod-rrdns
Status: install ok installed
Architecture: all
Installed-Time: 1583402889

There is only libiwinfo-lua which seems more generic.

It is a fresh new installation, no previous settings were preserved.

The question is - can skipping of such a dependency cause a weird error such as this: https://github.com/openwrt/luci/issues/3773?

Yes because if the binary interface of a library has changed the data structures for exchanging data between application and library aren't the same and this will result in unexpected behavior.

Also if luci isn't depending on libiwinfo directly, libiwinfo-lua will depend on libiwinfo and here the binary interface changed recently.

I understand.

Is there any feasible solution for me? Let's say if I reflash the latest build in a week or so, will it get fixed in the meantime?

ich have the same issue, current snapshot, updated packages

# opkg install luci
Installing luci (git-20.099.26404-e9449d9-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci_git-20.099.26404-e9449d9-1_all.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 *      libiwinfo20181126
 * opkg_install_cmd: Cannot install package luci.

The latest build of luci is compiled against the latest libiwinfo on master/trunk

for me, above error indicates it's built against an older version, but current is installed...

fixed in current snapshot...

4 Likes

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