'CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found

Viewed 9592

In Termux (my_distro):

$ pkg show openssl
Package: openssl
Version: 3.0.1-1
Maintainer: @termux
Installed-Size: 6648 kB
Depends: ca-certificates, zlib
Conflicts: libcurl (<< 7.61.0-1)
Breaks: openssl-tool (<< 1.1.1b-1), openssl-dev
Replaces: openssl-tool (<< 1.1.1b-1), openssl-dev

openssl installed pkg:

openssh/stable 8.8p1-3 aarch64 [upgradable from: 8.8p1-1]
openssl-tool/stable 3.0.1-1 aarch64 [upgradable from: 1.1.1m-2]
openssl/stable 3.0.1-1 aarch64 [upgradable from: 1.1.1m-2]

Installation of nodejs:

$ pkg install nodejs-lts
Setting up nodejs-lts (16.14.0-2) ...
CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found
Aborted
dpkg: error processing package nodejs-lts (--configure):
 installed nodejs-lts package post-installation script subprocess returned error exit status 134
Processing triggers for man (1.14.5-3) ...
Errors were encountered while processing:
 nodejs-lts
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)

After that it shows now.

$ node
CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found
Aborted

$ npm
CANNOT LINK EXECUTABLE "node": library "libcrypto.so.3" not found
Aborted
5 Answers

for me, running pkg upgrade && pkg update has solved the problem

You can also try changing the default repo mirror.

Run the following command:

termux-change-repo

This will drop the shell to an options window allowing you to select an alternative mirror. Once you have selected one, Termux should then run pkg update or apt update on its own.

For me, this solved pretty much all package related issues.

I hope it helps you too.

Orrr... just

pkg update openssl-tool

or

apt update openssl-tool 

Is the same.

;)

openssl-tool may not be installed if you are running latest termux

Try running:

apt upgrade && apt update
apt install openssl-tool
Related