Ubuntu – How to properly downgrade openssl version under Ubuntu 18.04

18.04aptdependenciesopenssl

I need to install some proprietary antivirus software on my 18.04 system because of company policy. The thing is, it requires an older version of OpenSSL to even install and then work, i.e. Ubuntu 18.04 uses 1.1 series, and the software depends on version 1.0. They don't seem to be planning to change that in the near future since Linux is not a priority platform for them.

Apt does not see any older versions than 1.1 in the repositories. I managed to find a .deb file with some 1.0.1 version, but obviously just installing it breaks dependencies throughout the whole system and apt wants me to run installation fix (which just installs the newest version).

Removing the currently installed OpenSSL version (to later install the old one) is out of the question since that also removes lots of important packages that I require for work (including the whole Gnome environment).

Is there a way to properly downgrade OpenSSL to 1.0 without breaking the system, or at least have both versions installed (and just direct the software and its installer to the older one)?

Best Answer

You can try the following:

sudo apt-get install -y --allow-downgrades openssl1.0=1.0.2n-1ubuntu5.1 
echo "export OPENSSL_DIR=/usr/lib/ssl1.0/" >> ~/.bashrc