Error with apk and wget

when i performe an action with apk (update or install) i get this:

root@OpenWrt:/etc/apk/repositories.d# apk upgrade
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/base/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/6.6.95-1-1ddf8a2d205a2e77f204e8a25ef662ca/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/routing/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/video/packages.adb: unexpected end of file
ERROR: Not continuing due to stale/unavailable repositories.Use --force-missing-repositories to continue.

libustream-openssl20201210 is already installed
ca-bundle already installed
ca-certificates is not installed, but i cant install it because i get the same error

how to fix this?

ln -sf /bin/uclient-fetch /usr/bin/wget
Then remove wget and install wget-ssl

1 Like
root@OpenWrt:/etc/apk/repositories.d# apk del wget
World updated, but the following packages are not removed due to:
  wget: uclient-fetch apk-mbedtls

( 1/20) Installing ca-certificates (20241223-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: ca-certificates-20241223-r1: remote server returned error (try 'apk update')
( 2/20) Installing libltdl7 (2.4.7-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: libltdl7-2.4.7-r1: remote server returned error (try 'apk update')
( 3/20) Installing liblua5.1.5 (5.1.5-r11)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: liblua5.1.5-5.1.5-r11: remote server returned error (try 'apk update')
( 4/20) Installing collectd (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-5.12.0-r54: remote server returned error (try 'apk update')
( 5/20) Installing collectd-mod-cpu (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-cpu-5.12.0-r54: remote server returned error (try 'apk update')
( 6/20) Installing collectd-mod-interface (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-interface-5.12.0-r54: remote server returned error (try 'apk update')
( 7/20) Installing collectd-mod-iwinfo (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-iwinfo-5.12.0-r54: remote server returned error (try 'apk update')
( 8/20) Installing collectd-mod-load (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-load-5.12.0-r54: remote server returned error (try 'apk update')
( 9/20) Installing collectd-mod-memory (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-memory-5.12.0-r54: remote server returned error (try 'apk update')
(10/20) Installing collectd-mod-network (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-network-5.12.0-r54: remote server returned error (try 'apk update')
(11/20) Installing librrd1 (1.0.50-r7)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: librrd1-1.0.50-r7: remote server returned error (try 'apk update')
(12/20) Installing collectd-mod-rrdtool (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-rrdtool-5.12.0-r54: remote server returned error (try 'apk update')
(13/20) Installing rrdtool1 (1.0.50-r7)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: rrdtool1-1.0.50-r7: remote server returned error (try 'apk update')
(14/20) Installing luci-app-statistics (25.184.54687~b914575)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: luci-app-statistics-25.184.54687~b914575: remote server returned error (try 'apk update')
(15/20) Installing px5g-mbedtls (11)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: px5g-mbedtls-11: remote server returned error (try 'apk update')
(16/20) Installing luci-ssl (25.184.54687~b914575)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: luci-ssl-25.184.54687~b914575: remote server returned error (try 'apk update')
(17/20) Installing libatomic1 (14.3.0-r4)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: libatomic1-14.3.0-r4: remote server returned error (try 'apk update')
(18/20) Installing libopenssl-conf (3.5.1-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: libopenssl-conf-3.5.1-r1: remote server returned error (try 'apk update')
(19/20) Installing openssl-util (3.5.1-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: openssl-util-3.5.1-r1: remote server returned error (try 'apk update')
(20/20) Installing luci-ssl-openssl (25.184.54687~b914575)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: luci-ssl-openssl-25.184.54687~b914575: remote server returned error (try 'apk update')
20 errors; 23 MiB in 162 packages

trying to install wget-ssl:

root@OpenWrt:/etc/apk/repositories.d# apk add wget-ssl
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/targets/ath79/generic/packages/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/base/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/targets/ath79/generic/kmods/6.6.95-1-1ddf8a2d205a2e77f204e8a25ef662ca/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/luci/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/packages/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/routing/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/telephony/packages.adb: unexpected end of file
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
WARNING: updating https://downloads.openwrt.org/snapshots/packages/mips_24kc/video/packages.adb: unexpected end of file
( 1/22) Installing libatomic1 (14.3.0-r4)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: libatomic1-14.3.0-r4: remote server returned error (try 'apk update')
( 2/22) Installing libpcre2 (10.42-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: libpcre2-10.42-r1: remote server returned error (try 'apk update')
( 3/22) Installing wget-ssl (1.25.0-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: wget-ssl-1.25.0-r1: remote server returned error (try 'apk update')
( 4/22) Installing ca-certificates (20241223-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: ca-certificates-20241223-r1: remote server returned error (try 'apk update')
( 5/22) Installing libltdl7 (2.4.7-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: libltdl7-2.4.7-r1: remote server returned error (try 'apk update')
( 6/22) Installing liblua5.1.5 (5.1.5-r11)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: liblua5.1.5-5.1.5-r11: remote server returned error (try 'apk update')
( 7/22) Installing collectd (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-5.12.0-r54: remote server returned error (try 'apk update')
( 8/22) Installing collectd-mod-cpu (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-cpu-5.12.0-r54: remote server returned error (try 'apk update')
( 9/22) Installing collectd-mod-interface (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-interface-5.12.0-r54: remote server returned error (try 'apk update')
(10/22) Installing collectd-mod-iwinfo (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-iwinfo-5.12.0-r54: remote server returned error (try 'apk update')
(11/22) Installing collectd-mod-load (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-load-5.12.0-r54: remote server returned error (try 'apk update')
(12/22) Installing collectd-mod-memory (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-memory-5.12.0-r54: remote server returned error (try 'apk update')
(13/22) Installing collectd-mod-network (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-network-5.12.0-r54: remote server returned error (try 'apk update')
(14/22) Installing librrd1 (1.0.50-r7)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: librrd1-1.0.50-r7: remote server returned error (try 'apk update')
(15/22) Installing collectd-mod-rrdtool (5.12.0-r54)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: collectd-mod-rrdtool-5.12.0-r54: remote server returned error (try 'apk update')
(16/22) Installing rrdtool1 (1.0.50-r7)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: rrdtool1-1.0.50-r7: remote server returned error (try 'apk update')
(17/22) Installing luci-app-statistics (25.184.54687~b914575)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: luci-app-statistics-25.184.54687~b914575: remote server returned error (try 'apk update')
(18/22) Installing px5g-mbedtls (11)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: px5g-mbedtls-11: remote server returned error (try 'apk update')
(19/22) Installing luci-ssl (25.184.54687~b914575)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: luci-ssl-25.184.54687~b914575: remote server returned error (try 'apk update')
(20/22) Installing libopenssl-conf (3.5.1-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: libopenssl-conf-3.5.1-r1: remote server returned error (try 'apk update')
(21/22) Installing openssl-util (3.5.1-r1)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: openssl-util-3.5.1-r1: remote server returned error (try 'apk update')
(22/22) Installing luci-ssl-openssl (25.184.54687~b914575)
wget: wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
ERROR: wget: exited with error 1
ERROR: luci-ssl-openssl-25.184.54687~b914575: remote server returned error (try 'apk update')
22 errors; 23 MiB in 162 packages
root@OpenWrt:/etc/apk/repositories.d# 

Can you run apk update after setting up symbolic link?

no, i get the same error

Is this a customized image?

yes, a i have added luci to snapshot and installed it.
i think the custumized image keeps all the packages from the main image and then add what i choose?

You can still sysupgrade, to 24.10.2 preferably.

1 Like

i think i need to reflash it, because the latest version uses opkg while the snapshot uses apk?

You are where you are because you upgraded ssl library, least problems on stable release with attendedsysupgrade.

3 Likes