Luci with px5g error? (installing luci-ssl in LEDE master fails)

Hi,

since 2 days i cant install luci.

I get - i try "opkg install luci-ssl"...no matter wihc build. Thats since 2 days.

Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/luci/luci-ssl_git-17.056.73941-fd2c692-1_all.ipk
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-ssl:
  •  px5g *
    
  • opkg_install_cmd: Cannot install package luci-ssl.

Hmmm, day 3 - Problem still exist

BusyBox v1.26.2 () built-in shell (ash)

 _________
/        /\      _    ___ ___  ___

/ LE / \ | | | | | |
/ DE / \ | |
| || |) | |
/
______/ LE \ |||/|| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (SNAPSHOT, r3598-eb09d79)
_
/ -----------------------------------------------------------

root@lede:~#
root@lede:~#
root@lede:~#
root@lede:~# opkg install luci-ssl
Installing luci-ssl (git-17.057.66333-0f474fc-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/luci/luci-ssl_git-17.057.66333-0f474fc-1_all.ipk
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-ssl:
  •  px5g *
    
  • opkg_install_cmd: Cannot install package luci-ssl.
    root@lede:~#

[quote="DoubleQ, post:2, topic:1917"]
Hmmm, day 3 - Problem still exist
[/quote]How about filing a bug at https://bugs.lede-project.org so that devs will notice it?

In any case, you can fix your personal problem by installing the three modules manually:

opkg install luci
opkg install libustream-mbedtls
opkg install px5g-mbedtls

I tested it and installing luci-ssl to a live router does not work, you are right. The error is likely due to px5g-mbedtls "providing" px5g, which fails with "opkg install" to a live router, but succeeds with "make menuconfig" when you configure your own build for compilation.

@jow
Could this be due to master switching to a new version of opkg?
The package info looks sensible:
luci-ssl depends on px5g and px5g-mbedtls provides px5g

root@O2:~# grep r3 /etc/banner
   \  DE    \  /    Reboot (SNAPSHOT, r3598-eb09d79c16)

root@O2:~# opkg info luci-ssl
Package: luci-ssl
Version: git-17.057.66333-0f474fc-1
Depends: libc, luci, libustream-mbedtls, px5g
Status: unknown ok not-installed
Section: luci
Architecture: all
Size: 817
Filename: luci-ssl_git-17.057.66333-0f474fc-1_all.ipk
Description: LuCI with HTTPS support (mbedTLS as SSL backend)

root@O2:~# opkg info px5g*
Package: px5g-mbedtls
Version: 4
Depends: libc, libmbedtls
Provides: px5g
Status: unknown ok not-installed
Section: utils
Architecture: mips_24kc
Size: 4929
Filename: px5g-mbedtls_4_mips_24kc.ipk
Description: Px5g is a tiny standalone X.509 certificate generator.
 It suitable to create key files and certificates in DER
 and PEM format for use with stunnel, uhttpd and others.

Package: px5g-standalone
Version: 4
Depends: libc
Status: unknown ok not-installed
Section: utils
Architecture: mips_24kc
Size: 50538
Filename: px5g-standalone_4_mips_24kc.ipk
Description: Px5g is a tiny standalone X.509 certificate generator.
 It suitable to create key files and certificates in DER
 and PEM format for use with stunnel, uhttpd and others.

root@O2:~# opkg install luci-ssl
Installing luci-ssl (git-17.057.66333-0f474fc-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mips_24kc/luci/luci-ssl_git-17.057.66333-0f474fc-1_all.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-ssl:
 *      px5g *
 * opkg_install_cmd: Cannot install package luci-ssl.

Strange. I wonder if the provides thing works in opkg.

@jow
installing luci-ssl works ok in 17.01 although package deps & provides are similar, so my strong hunch is that this is somehow related to the new opkg that master uses.

(Note that 17.01 has the old px5g-standalone unlike master, where it changed again a few days ago to statically linked px5g-mbedtls, but from opkg perspective the package data looks similar in both. So I am inclined to blame opkg at this point.)

@jow
one more observation:
in 17.01 the command "opkg whatprovides px5g" works, but it hangs on master:

17.01
root@O2:~# opkg whatprovides px5g
What provides px5g
    px5g-mbedtls

master:
root@LEDE:/# opkg whatprovides px5g
What provides px5g
^C
root@LEDE:/# opkg -v
opkg version f9baf914f8fd0179e575deeebabe463d9f87e850 (2017-02-23)

Thanks for the advice. Im not so familiar with all that cli stuff

Fixed with https://git.lede-project.org/?p=project/opkg-lede.git;a=commitdiff;h=0fb3e9f24ffe4fd04da800ca988d60d2ed835457

Fixed with https://git.lede-project.org/?p=project/opkg-lede.git;a=commitdiff;h=439c89e2be0ec0e62da6bd4b592964caff65bee1

Thanks @jow
I compiled opkg from opkg-lede HEAD for ipq806x and both problems seem to be fixed:

root@LEDE:~# opkg -v
opkg version 439c89e2be0ec0e62da6bd4b592964caff65bee1 (2017-02-27)

root@LEDE:~# opkg install luci-ssl
Installing luci-ssl (git-17.057.66333-0f474fc-1) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/arm_cortex-a15_                              neon-vfpv4/luci/luci-ssl_git-17.057.66333-0f474fc-1_all.ipk
Installing libmbedtls (2.4.0-2) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/arm_cortex-a15_                              neon-vfpv4/base/libmbedtls_2.4.0-2_arm_cortex-a15_neon-vfpv4.ipk
Installing libustream-mbedtls (2016-07-02-ec80adaa-2) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/arm_cortex-a15_                              neon-vfpv4/base/libustream-mbedtls_2016-07-02-ec80adaa-2_arm_cortex-a15_neon-vfp                              v4.ipk
Installing px5g-mbedtls (4) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/arm_cortex-a15_                              neon-vfpv4/base/px5g-mbedtls_4_arm_cortex-a15_neon-vfpv4.ipk
Configuring libmbedtls.
Configuring px5g-mbedtls.
Configuring libustream-mbedtls.
Configuring luci-ssl.

root@LEDE:~# opkg whatprovides px5g
What provides px5g
    px5g-mbedtls