[Solved] Installation of Luci fails [Solved]

Hi

Since I setup openwrt January last year, I've used it ok.
However, it suddenly couldn't connect internet yesterday, so I factory-reset then.
And then, I tried to install Luci but in fail as followes.

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/5.4.94-1-6b0e6ccfc1a63ac8682d721effce8201/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/5.4.94-1-6b0e6ccfc1a63ac8682d721effce8201/Packages.gz

Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/freifunk/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/freifunk/Packages.gz

Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/targets/ramips/mt7621/kmods/5.4.94-1-6b0e6ccfc1a63ac8682d721effce8201/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/freifunk/Packages.gz, wget returned 8.


root@OpenWrt:~# opkg install --force-depends luci
Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libgcc1 and libgcc1) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREFER. Using latest.
Installing luci (git-22.297.83017-0143ef2) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci_git-22.297.83017-0143ef2_all.ipk
Installing libnl-tiny2022-11-01 (2022-11-01-db3b2cdb-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libnl-tiny2022-11-01_2022-11-01-db3b2cdb-1_mipsel_24kc.ipk
Installing rpcd-mod-luci (20210614) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/rpcd-mod-luci_20210614_mipsel_24kc.ipk
Installing libucode20220812 (2022-12-02-46d93c9c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libucode20220812_2022-12-02-46d93c9c-1_mipsel_24kc.ipk
Installing rpcd-mod-ucode (2022-12-15-7de4820c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd-mod-ucode_2022-12-15-7de4820c-1_mipsel_24kc.ipk
Installing cgi-io (2022-08-10-901b0f04-21) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/cgi-io_2022-08-10-901b0f04-21_mipsel_24kc.ipk
Installing ucode (2022-12-02-46d93c9c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/ucode_2022-12-02-46d93c9c-1_mipsel_24kc.ipk
Installing ucode-mod-fs (2022-12-02-46d93c9c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/ucode-mod-fs_2022-12-02-46d93c9c-1_mipsel_24kc.ipk
Installing ucode-mod-uci (2022-12-02-46d93c9c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/ucode-mod-uci_2022-12-02-46d93c9c-1_mipsel_24kc.ipk
Installing ucode-mod-ubus (2022-12-02-46d93c9c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/ucode-mod-ubus_2022-12-02-46d93c9c-1_mipsel_24kc.ipk
Installing ucode-mod-math (2022-12-02-46d93c9c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/ucode-mod-math_2022-12-02-46d93c9c-1_mipsel_24kc.ipk
Installing ucode-mod-html (1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/ucode-mod-html_1_mipsel_24kc.ipk
Installing liblucihttp0 (2022-07-08-6e68a106-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/liblucihttp0_2022-07-08-6e68a106-1_mipsel_24kc.ipk
Installing liblucihttp-ucode (2022-07-08-6e68a106-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/liblucihttp-ucode_2022-07-08-6e68a106-1_mipsel_24kc.ipk
Installing luci-base (git-22.351.50506-a27d2db) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-base_git-22.351.50506-a27d2db_mipsel_24kc.ipk
Installing rpcd-mod-rpcsys (2022-12-15-7de4820c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd-mod-rpcsys_2022-12-15-7de4820c-1_mipsel_24kc.ipk
Installing attendedsysupgrade-common (8) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/attendedsysupgrade-common_8_all.ipk
Installing luci-app-attendedsysupgrade (git-22.285.67526-18bfcca) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-app-attendedsysupgrade_git-22.285.67526-18bfcca_all.ipk
Installing luci-app-firewall (git-22.089.67453-0eb3aeb) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-app-firewall_git-22.089.67453-0eb3aeb_all.ipk
Installing luci-app-opkg (git-22.273.28779-84ba6a5) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-app-opkg_git-22.273.28779-84ba6a5_all.ipk
Installing libiwinfo-data (2022-12-15-8d158096-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libiwinfo-data_2022-12-15-8d158096-1_mipsel_24kc.ipk
Installing libiwinfo20210430 (2022-12-15-8d158096-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libiwinfo20210430_2022-12-15-8d158096-1_mipsel_24kc.ipk
Installing rpcd-mod-iwinfo (2022-12-15-7de4820c-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/rpcd-mod-iwinfo_2022-12-15-7de4820c-1_mipsel_24kc.ipk
Installing luci-mod-status (git-22.357.66487-307e385) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-status_git-22.357.66487-307e385_mipsel_24kc.ipk
Installing luci-mod-system (git-22.297.83017-f478fe6) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-system_git-22.297.83017-f478fe6_all.ipk
Installing luci-mod-network (git-22.355.70416-45a9115) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-network_git-22.355.70416-45a9115_all.ipk
Installing luci-mod-admin-full (git-19.253.48496-3f93650) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-mod-admin-full_git-19.253.48496-3f93650_all.ipk
Installing luci-proto-ppp (git-21.158.38888-88b9d84) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-proto-ppp_git-21.158.38888-88b9d84_all.ipk
Installing luci-theme-bootstrap (git-22.297.83017-2e3282e) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci-theme-bootstrap_git-22.297.83017-2e3282e_all.ipk
Installing rpcd-mod-rrdns (20170710) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/rpcd-mod-rrdns_20170710_mipsel_24kc.ipk
Installing libjson-script20220927 (2022-09-27-ea560134-1) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/libjson-script20220927_2022-09-27-ea560134-1_mipsel_24kc.ipk
Installing uhttpd (2022-08-12-e3395cd9-3) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/uhttpd_2022-08-12-e3395cd9-3_mipsel_24kc.ipk
Installing uhttpd-mod-ubus (2022-08-12-e3395cd9-3) to root...
Downloading https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/uhttpd-mod-ubus_2022-08-12-e3395cd9-3_mipsel_24kc.ipk
Configuring liblucihttp0.
Configuring cgi-io.
Configuring luci-app-opkg.
Configuring libnl-tiny2022-11-01.
Configuring rpcd-mod-luci.
Command failed: Not found
Configuring libucode20220812.
Configuring rpcd-mod-ucode.
Command failed: Not found
Configuring ucode.
Configuring ucode-mod-fs.
Configuring ucode-mod-uci.
Configuring ucode-mod-ubus.
Configuring ucode-mod-math.
Configuring ucode-mod-html.
Configuring liblucihttp-ucode.
Configuring luci-base.
//usr/lib/opkg/info/luci-base.postinst: /usr/lib/opkg/info/luci-base.postinst-pkg: line 7: service: not found
Configuring luci-mod-system.
Configuring luci-theme-bootstrap.
/luci-static/bootstrap
Configuring libjson-script20220927.
Configuring libiwinfo-data.
Configuring libiwinfo20210430.
Configuring rpcd-mod-iwinfo.
Command failed: Not found
Configuring luci-mod-status.
Configuring luci-app-firewall.
Configuring luci-proto-ppp.
Configuring luci-mod-network.
Configuring luci-mod-admin-full.
Configuring rpcd-mod-rpcsys.
Command failed: Not found
Configuring attendedsysupgrade-common.
Configuring luci-app-attendedsysupgrade.
Configuring uhttpd.
4+0 records in
4+0 records out
Configuring rpcd-mod-rrdns.
Command failed: Not found
Configuring uhttpd-mod-ubus.
4+0 records in
4+0 records out
Configuring luci.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nfnetlink found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-log found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-log6 found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-hash found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-crypto-crc32c found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-lib-crc32c found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-core found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-fib found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-nat found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-offload found, but incompatible with the architectures configured
root@OpenWrt:~# 

Please help me to install Luci
Thanks in advance

OpenWrt:

snapshots are built daily, and that sets time limits to installing new packages with opkg. Due to kernel version checksums, you can only install “kmod” kernel modules and other kernel version dependent modules from the exactly same snapshot build. So, a few hours after flashing the firmware you may not be able to install new modules with opkg any more (as the next snapshot has been built into the download repo and has different checksums). See below for package availability time limits.

If you prefer/require use of snapshots,
You can download/install using Firmware Selector and manually include LuCI.

2 Likes

What @Warlock said...

and...

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.

The force install was probably a bad idea, as it is likely to cause additional issues. You're going to need to install a new version, so instead of another snapshot, I'd recommend installing a fresh copy of the official release version (latest is 22.03.2), assuming your device is supported. LuCI is pre-installed on release versions.

Thanks for your reply

As your suggestion, I'm now trying to install the lastet version.
However, it fails like the following with "Could not open mtd device"

root@OpenWrt:/tmp# wget https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/openwrt-22.03.0-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-ker
nel1.bin
Downloading 'https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/openwrt-22.03.0-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1.bin'
Connecting to 2a01:4f8:251:321::2:443
Writing to 'openwrt-22.03.0-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1.bin'
openwrt-22.03.0-rami 100% |*******************************|  2617k  0:00:00 ETA
Download completed (2680134 bytes)
root@OpenWrt:/tmp# 
root@OpenWrt:/tmp# wget https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/openwrt-22.03.0-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-roo
tfs0.bin
Downloading 'https://downloads.openwrt.org/releases/22.03.0/targets/ramips/mt7621/openwrt-22.03.0-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-rootfs0.bin'
Connecting to 2a01:4f8:251:321::2:443
Writing to 'openwrt-22.03.0-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-rootfs0.bin'
openwrt-22.03.0-rami 100% |*******************************|  5248k  0:00:00 ETA
Download completed (5373952 bytes)
root@OpenWrt:/tmp# 
root@OpenWrt:/tmp# mtd write openwrt-22.03.0-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-kernel1.bin kernel1
Could not open mtd device: kernel1
Can't open device for writing!
root@OpenWrt:/tmp# 

Please help me to solve this

You've downloaded the wrong images, and you're also trying to do an mtd write which is not how OpenWrt upgrades.

cd /tmp

wget https://downloads.openwrt.org/releases/22.03.2/targets/ramips/mt7621/openwrt-22.03.2-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-sysupgrade.bin

sysupgrade -n /tmp/openwrt-22.03.2-ramips-mt7621-xiaomi_redmi-router-ac2100-squashfs-sysupgrade.bin

OK, it only needs sysupgrade at openwrt
it works now
Thanks again

Great!!

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.

Thanks for your reply

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