when i open unity and make something project then the error is coming that " no usable version of libssl was found "

Viewed 4231

i am new to linux ubuntu . i am using ubuntu 22.04 . recently i downloaded unity and it is showing error " no usable version of libssl was found " How to fix this PLease help me !! i tried to find solution for this problem and i found nothing . ( i am using linux and i am new to linux ) .

4 Answers

You need to download the missing libssl library and install it

$ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.9_amd64.deb
$ sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.9_amd64.deb

For Ubuntu


sudo add-apt-repository ppa:rael-gc/rvm
sudo apt-get update
sudo apt install libssl1.0-dev

The reason for this error lies in incompatible versions of Open ssl on your machine and needed from Unity. Ubuntu 22.04 installs Open ssl 3.0 per default but Unity for Linux currently uses .Net5 per default and therefore can only run with Open ssl 1.0 or 1.1.

To fix this, you need to downgrade your Open ssl on your machine to either 1.0 or 1.1. I tested 1.0.2 version from the link Jeff Chen commented below rainman's answer.

I also tested the wget method from this answer over on askubuntu just with the downloaded package and it worked like a charm for me.

Unity is aware of this problem as seen here.

Edit: I had to restart my computer for the error to disappear.

You have to install the openssl 1.1

Download and Install it by the following steps:

wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
tar -xzvf openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
sudo ./config
sudo make install 

openssl version -v 

I'm not sure but you can set ln too:

sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` 

and if you get this error:

openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

fix it with this command: ldconfig after install

Related