How to Fix libssl.so.1.1 Error in Termux
libssl.so.1.1 not found | cannot link executable (Termux)
Introduction
If you use Termux, you may run into an error similar to:
cannot link executable: libssl.so.1.1 not found
This usually happens after repository or OpenSSL changes. While the error looks serious, it can be fixed reliably by resetting the Termux environment and switching to a stable mirror.
Warning
Read carefully before continuing.
The steps below will completely remove everything inside $PREFIX, including:
- All installed packages
- Third-party repositories
- Custom modifications inside
$PREFIX
Your $HOME directory will not be affected.
Only proceed if you understand and accept this.
Step 1: Remove the Current Termux Prefix
Open a failsafe Termux session and run:
rm -rf $PREFIX
Step 2: Reopen Termux
Close Termux completely and open it again.
Termux will automatically reinstall the bootstrap environment.
Step 3: Switch to grimler.se Mirrors
To avoid OpenSSL rebuild issues, switch to the grimler.se repository:
termux-change-repo
Select the grimler.se mirror when prompted.
Step 4: Update Packages
Once the mirror is switched, update Termux:
pkg up
It is normal if updates appear limited at first. This is expected behavior while OpenSSL transitions are in progress.
Conclusion
After completing these steps, the libssl.so.1.1 error should be resolved and Termux should function normally again.
If you face similar linking errors in the future, resetting the prefix and using a stable mirror is often the fastest fix.
Author’s Note
Thanks for reading. If this guide helped you, consider checking out related Termux and Android Linux tutorials.
A full video walkthrough is available here:
Search Terms
- libssl.so.1.1 not found termux
- termux libssl.so.1.1 error
- cannot link executable libssl.so.1.1 termux