Accidentally removed all SSL libs on my system, can't install manually

This is what's left:

ca-bundle - 20211016-1
libmicrohttpd-ssl - 0.9.75-1

Attempting to install directly naturally fails:

Installing libustream-openssl20201210 (2022-12-08-9217ab46-2) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a15_neon-vfpv4/base/libustream-openssl20201210_2022-12-08-9217ab46-2_arm_cortex-a15_neon-vfpv4.ipk
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a15_neon-vfpv4/base/libustream-openssl20201210_2022-12-08-9217ab46-2_arm_cortex-a15_neon-vfpv4.ipk, wget returned 1.
 * opkg_install_pkg: Failed to download libustream-openssl20201210. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package libustream-openssl.

So I downloaded the ipk file, and yet that fails as well when:

root@OpenWrt:~# opkg install libustream-openssl20201210_2022-12-08-9217ab46-2_arm_cortex-a15_neon-vfpv4.ipk --no-check-certifica
te
Installing libustream-openssl20201210 (2022-12-08-9217ab46-2) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a15_neon-vfpv4/base/libustream-openssl20201210_2022-12-08-9217ab46-2_arm_cortex-a15_neon-vfpv4.ipk
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a15_neon-vfpv4/base/libustream-openssl20201210_2022-12-08-9217ab46-2_arm_cortex-a15_neon-vfpv4.ipk, wget returned 1.
 * opkg_install_pkg: Failed to download libustream-openssl20201210. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package libustream-openssl20201210.

I seem to have gotten myself into a pickle. How might I proceed from here?

Make a backup of your conifg, then reset to defaults and restore your backup.

1 Like

Alternative 1)
Download the .ipk to your PC, transfer to router with scp, and install it manually with opkg.

Alternative 2)
Assuming that you have a normal filesystem with ROM+overlay, you have the original SSL library files in /rom in the router you can manually copy the files from there.

1 Like

Thanks. I'll try this.

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