[Solved] Dependency error when installing Luci

Hi all

I just installed Openwrt on my Raspberry Pi 4 Model B. The snapshot version I installed is:

openwrt-brcm2708-bcm2711-rpi-4-ext4-factory - date: Fri Feb 14 01:49:43 2020

I have run the following two commands:

opkg update
opkg install luci

After the second command an error is returned:

Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
  •  libiwinfo20181126
    
  • opkg_install_cmd: Cannot install package luci.

I tried updating the dependency running the following command:

opkg install libiwinfo

It returns the following:

Package libiwinfo20200105 (2020-01-05-bf2c1069-1) installed in root is up to date.

I am very unexperienced with Openwrt and linux in general, so I am probably just forgetting something dumb. Can anyone tell me what I am doing wrong?

Thank you for your time.

You probably have an out of date snapshot. Upgrade to the latest snapshot or, if possible, a stable release build (which already includes LuCI).

EDIT: Just to be totally clear, you upgrade to the latest snapshot or a stable release build by downloading the image from downloads.openwrt.org and then using the sysupgrade command to flash the new image into the router. It is usually wise to not preserve settings using sysupgrade -n <image_filename> and then re-create your settings (you can always take a backup before you run the flash upgrade). You should never use opkg upgrade in general (there are lots of threads on this -- it may result in major problems or even little ones that are really hard to diagnose/resolve), and in this case, that command would not be helpful since it doesn't actually upgrade the core OpenWrt version and your snapshot is out of date so it probably wouldn't work in the first place.

RPi4 doesn't have yet a stable version.
Upgrade to the current snapshot and immediately install Luci and the rest of the packages that you need. Snapshots are rebuilt daily, so from day to day there can be incompatibilities.

2 Likes

See also https://openwrt.org/faq/cannot_satisfy_dependencies

Thank you all for your answers. When I tried installing the dependencies, it was right after a reinstall. Maybe I had bad timing, because I tried the same today and now there is no dependency errors, and everything is up and running.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

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