Solve the problem of lack of libssl.so.1.1 in Ubuntu22.04

Error message:

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

The solutions on the Internet are the same. Some people say that installing openssl can solve it. Isn’t this a sledgehammer? Besides, Ubuntu has already installed Openssl itself, so you need to install another one? Can it solve the problem? Solving the problem cannot be taken for granted, but the cause of the problem must be found.

After investigation, libssl1.1 has been removed from the warehouse since ubuntu18.04, so when using Ubuntu22.04, sudo apt update cannot install and update libss1.1 anyway, so if some software still depends on this library, it will cause does not work properly, we need to manually install the library.

Solution:

wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

After the installation is complete, you can run the software normally.

or

Enter the following website, you can find the components you need to download and install by yourself

Index of /ubuntu/pool/main/o/openssl

There are many openssl component libraries under this address, you can download the corresponding version according to your own system requirements, the installation method is the same, pay attention to the difference between i386 (x86) and amd64 (x64) when downloading!

hope it helps you! 

Guess you like

Origin blog.csdn.net/Asgard_Hu/article/details/127532328