How to install libustream-ssl and libustream-tls

They don't exist when i try to install them with opkg.

Need it for curl:

´´´
root@OpenWrt:~# wget https://ipecho.net/plain
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
root@OpenWrt:~#
´´´

Have you run opkg update first?

Yes:

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/Packages.gz
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install libustream-tls
Unknown package 'libustream-tls'.
Collected errors:
 * opkg_install_cmd: Cannot install package libustream-tls.
root@OpenWrt:~# opkg install libustream-ssl
Unknown package 'libustream-ssl'.
Collected errors:
 * opkg_install_cmd: Cannot install package libustream-ssl.
root@OpenWrt:~#

p.s. can somebody change the title to "...and libustream-tls" ?? :wink:

Apparently outdated error message

https://openwrt.org/packages/table/start?dataflt[Name_pkg-dependencies*~]=libustream

libustream-mbedtls
libustream-openssl -- OOPS, previously misspelled!

The OP can use the edit button beside the title:

Screenshot%20from%202018-09-10%2017-25-38 :point_left:

thx!! "'libsutream-openssl" doens't seems to exist. was it replace by the tls one?

My typo there -- libustream-openssl

mbedTLS is one library, OpenSSL is another -- both work well. If you're planning on installing things that depend on OpenSSL, then no need to have both libraries installed and I'd go with the OpenSSL version. Otherwise, they're very similar.

libustream-openssl

thank you very much! :wink:

now it works...

Use libustream-mbedtls OR libustream-openssl

https://openwrt.org/packages/table/start?dataflt[Name_pkg-dependencies*~]=libustream

For more explanation of the two packages:

1 Like

oh no, i was a lil bit to early:

root@OpenWrt:~# opkg install libustream-openssl
Installing libustream-openssl (2018-05-22-5322f9db-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/libustream-openssl_2018-05-22-5322f9db-1_mips_24kc.ipk
Installing zlib (1.2.11-2) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/zlib_1.2.11-2_mips_24kc.ipk
Installing libopenssl (1.0.2p-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/libopenssl_1.0.2p-1_mips_24kc.ipk
Configuring zlib.
Configuring libopenssl.
Collected errors:
 * check_data_file_clashes: Package libustream-openssl wants to install file /lib/libustream-ssl.so
        But that file is already provided by package  * libustream-mbedtls
 * opkg_install_cmd: Cannot install package libustream-openssl.
root@OpenWrt:~#

So that message is normal? No corrupt packages because of that installation abort?

Yes!

The error is simply stating that you already have libustream installed:

that file is already provided by package  * libustream-mbedtls

is there sometinhg like "clean" and "autoremove" similar to apt?

What are you cleaning and/or autoremoving???

maybe the installation packages from failed ssl installation?

What failed install???

The output you showed says it didn't install:

Cannot install package libustream-openssl.

There is nothing to clean or autoremove. Rebooting the router will clear the opkg cache.

I might have confused things a bit -- one libustream or the other, but whichever one you install will require and, if needed, bring in the "guts" of either mbedTLS or OpenSSL. The libmbedtls and libopenssl libraries can coexist.

1 Like

thank you for your information, i always asked me why i need to do "opkg update" again after every restart. the cache clean must be the reason, right?

Not exactly...the opkg "magic" is done in /tmp, so it would obviously cleared on a reboot of the router.

In addition, I believe in version 18, opkg update has to be less than 24 hours old to install software via LuCI.