Unable to install luci using opkg

I tried to install luci to my Archer A6 v2 (TP-Link), but failed.

Commands and output:

root@OpenWrt:~# opkg update
Downloading http://openwrt-dist.sourceforge.net/packages/base/mips_24kc/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_dist
Downloading http://openwrt-dist.sourceforge.net/packages/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_dist_luci
Downloading http://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/4.19.106-1-fae0538e5c76f8b13f89e370e94a285a/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
root@OpenWrt:~# opkg install luci
Installing luci (git-20.060.72422-2c4ba6e-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/luci_git-20.060.72422-2c4ba6e-1_all.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 *      uhttpd
 *      rpcd-mod-rrdns
 * opkg_install_cmd: Cannot install package luci.
root@OpenWrt:~# opkg install uhttpd
Unknown package 'uhttpd'.
Collected errors:
 * opkg_install_cmd: Cannot install package uhttpd.

You appear to be running a snapshot.

snapshots are moving targets. You may find that you will be unable to install new packages as little as a few hours after you download the snapshot build. This means that you will want to install everything of interest right away, or keep a local copy of the repo/source code from that build on your computer so you can install packages after the fact. Or, flash with the latest new snapshot and install at that point.

If you can use an official stable release, you won’t need to worry about this issue, but if your device doesn’t have official support in the stable release builds yet, snapshots will be the norm until at least the next major version.

1 Like

There is something strange going on in the master's packages buildbot. Lots of core packages are failing to build also for mips_24kc, uhttpd among them.
Current failure logs: https://downloads.openwrt.org/snapshots/faillogs/mips_24kc/base/

The is nothing you can do by yourself, except wait for a new build.
Or you can install a stable 19.07 build like psherman sugegsted above.

Of cource, you can build the master from sources by yourself. It is not that hard. (The same packages do build quite nicely in personal builds)

3 Likes

Of cource, you can build the master from sources by yourself. It is not that hard. (The same packages do build quite nicely in personal builds)

I am moderately familiar with Linux, but totally new to OpenWrt.
What article should I read to learn to build it from source?
I have to build "uhttpd" and "rpcd-mod-rrdns" from source right?

It would be better to build the whole firmware and include LuCI in the build.

See
https://openwrt.org/docs/guide-developer/build-system/start

2 Likes

I have the same issue. I have used dozens of snapshots and never had this issue. Of course, it's the risk of using snapshot builds that something becomes broken.

Anyway: what's the best way to overcome this? And if not possible to install Luci via ssh on the current build: is this the correct way of upgrading to a new version?

https://openwrt.org/docs/guide-user/installation/sysupgrade.cli

  • Using the proper sysupgrade file is always the correct way of upgrading to a new version
  • You never stated your current build

Nonetheless, I would say this it the best advice:

Current failure logs: https://downloads.openwrt.org/snapshots/faillogs/mips_24kc/base/

Many packages have been removed from failure logs, so it should be fine now?
But I still can't install luci now, or I need to do a sysupgrade?

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/4.19.106-1-fae0538e5c76f8b13f89e370e94a285a/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading http://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/4.19.106-1-fae0538e5c76f8b13f89e370e94a285a/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install luci
Installing luci (git-20.060.72422-2c4ba6e-1) to root...
Downloading http://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/luci_git-20.060.72422-2c4ba6e-1_all.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 *      uhttpd
 *      rpcd
 *      libubus-lua
 *      rpcd-mod-file
 *      rpcd-mod-luci
 *      cgi-io
 *      luci-mod-status
 *      rpcd-mod-iwinfo
 *      rpcd-mod-rrdns
 * opkg_install_cmd: Cannot install package luci.

Some extra information

root@OpenWrt:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core http://downloads.openwrt.org/snapshots/targets/ath79/generic/packages
src/gz openwrt_kmods http://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/4.19.106-1-fae0538e5c76f8b13f89e370e94a285a
src/gz openwrt_base http://downloads.openwrt.org/snapshots/packages/mips_24kc/base
src/gz openwrt_luci http://downloads.openwrt.org/snapshots/packages/mips_24kc/luci
src/gz openwrt_packages http://downloads.openwrt.org/snapshots/packages/mips_24kc/packages
src/gz openwrt_routing http://downloads.openwrt.org/snapshots/packages/mips_24kc/routing
src/gz openwrt_telephony http://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony
root@OpenWrt:~# cat /etc/opkg/customfeeds.conf
# add your custom package feeds here
#
# src/gz example_feed_name http://www.example.com/path/to/files

Edit: I found that opkg list luci seems to have a different version from server.

Edit 2: Problem solved, it seems to be caused by squid proxy cache...

I again have this issue on my C2600 for serveral days now.
Is there somwhere a guide for beginners on how to update the firmware via ssh?
I couldn't find it.

https://www.google.com/search?client=firefox-b-m&q=openwrt+firmware+upgrade+ssh&oq=openwrt+firmware+upgrade+ssh

1 Like