Kazi Samir
Kazi Samir

Reputation: 321

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

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

Upvotes: 32

Views: 86729

Answers (8)

Susobhan Das
Susobhan Das

Reputation: 1174

For me upgrading through pkg upgr worked.

This will update packages, then during installation there will be Y/N/I type prompt, whether to upgrade or not. I added all Y.

And lastly ssh-keygen -b 4096 generated key in home. However key is small

Upvotes: 1

isaac-svg
isaac-svg

Reputation: 1

The solution to this problem is very simple. Upgrading solved the issue

apt upgrade

Upvotes: 0

Orachigami
Orachigami

Reputation: 706

I was trying to use git but faced with the same issue. These commands helped in my case. Source: https://github.com/termux/termux-packages/issues/11331#issuecomment-1193137080

pkg upgr
pkg i openssl-1.1

Upvotes: 1

William N. Irwin
William N. Irwin

Reputation: 91

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.

Upvotes: 7

DroopCat
DroopCat

Reputation: 71

The google play version of Termux is deprecated.

Installing from Fdroid has solved this problem for me. https://wiki.termux.com/wiki/Installation

Upvotes: 7

daniel catalani
daniel catalani

Reputation: 471

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

Try running:

apt upgrade && apt update
apt install openssl-tool

Upvotes: 37

user18957781
user18957781

Reputation: 121

Orrr... just

pkg update openssl-tool

or

apt update openssl-tool 

Is the same.

;)

Upvotes: 12

Botea Florin
Botea Florin

Reputation: 633

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

Upvotes: 24

Related Questions