Cannot install luci

I'm using the latest stable release, 21.02.1, whose kernel version is 5.10.79. However when I tried to install luci with

opkg install luci

I got

root@OpenWrt:/etc# opkg install luci
Installing luci (git-20.074.84698-ead5e81) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/x86_64/luci/luci_git-20.074.84698-ead5e81_all.ipk
Configuring luci.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.80-1-5ef36db8fe34c5621e827c5afc2c6a82) for kmod-nf-reject
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.80-1-5ef36db8fe34c5621e827c5afc2c6a82) for kmod-nf-ipt
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.80-1-5ef36db8fe34c5621e827c5afc2c6a82) for kmod-ipt-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.80-1-5ef36db8fe34c5621e827c5afc2c6a82) for kmod-nf-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.80-1-5ef36db8fe34c5621e827c5afc2c6a82) for kmod-ipt-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.80-1-5ef36db8fe34c5621e827c5afc2c6a82) for kmod-nf-conntrack6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.80-1-5ef36db8fe34c5621e827c5afc2c6a82) for kmod-nf-nat

Since I'm using the latest version, how can I cannot have the latest kernel version?

1 Like

If you're using stable release ... how is it that you're trying to install a snapshot package?

bug in the stable image?

Though, I thought stable releases come with luci - so you must be using a snapshot image

1 Like

It appears your are not using the stable release, for two reasons:

First, opkg is downloading snapshot package lists, per below... this can only happen if you either installed a snapshot or if you changed the repository that opkg is using.

Second, you don't need to install LuCI if you are using an official stable release of 21.02.1. It is preinstalled.

FWIW, 21.02.1 uses Kernel 5.4.154.

When you get the message “Cannot satisfy the following dependencies for…” it is most likely because you installed a snapshot version of OpenWrt.
Read here for possible solutions.

1 Like

I download it here,

https://downloads.openwrt.org/releases/21.02.1/targets/x86/legacy/

It's not a stable release?

Yes, that is the stable release - how odd it doesn't come with luci installed

edit: no, wait ... according to the manifest - luci should be installed

luci - git-20.074.84698-ead5e81
luci-app-firewall - git-21.295.66767-8eceb63
luci-app-opkg - git-21.079.58598-6639e31
luci-base - git-21.295.67054-13df80d
luci-lib-base - git-20.232.39649-1f6dc29
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-jsonc - git-19.317.29469-8da8f38
luci-lib-nixio - git-20.234.06894-c4a4e43
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-21.295.67048-4d3de0e
luci-mod-status - git-21.295.66779-853a128
luci-mod-system - git-21.295.66903-8acd0d7
luci-proto-ipv6 - git-21.148.49484-14511e5
luci-proto-ppp - git-21.163.64918-6c6559a
luci-ssl - git-20.244.36115-e10f954
luci-theme-bootstrap - git-21.298.68362-d24760e

Thanks, is there anyway for me to confirm or check my installed version?

Yeah, you'll see it when you ssh into your router. But you can also check with
cat /etc/banner
or... better yet:
ubus call system board

yup, I removed it, and tried to re-install it because of some errors

did you also mess with /etc/opkg/distfeeds.conf?

1 Like

Even if you removed LuCI, you should be able to reinstall without an issue.

Please show us the output from ubus call system board

2 Likes

nop, I never hacked that file. I just checked the banner, seems it is a snapshot version. I better try the stable release.

Thank you guys.

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