apt – dpkg -i error: unable to open … no such file or directory


I try to install libssl 0.9.8 on lubuntu 20.04.1.

I have found no way to install it using apt, so that I downloaded a .deb package from the ubuntu Trusty (14.04) launchpad archive.

I try to install it this way:

kids@Dani:~/Downloads$ sudo dpkg -i libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb

It gives me the following error:

(Reading database ... 268220 files and directories currently installed.)
Preparing to unpack libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb ...
Unpacking libssl0.9.8:amd64 (0.9.8o-7ubuntu3.2.14.04.1) ...
dpkg: error processing archive libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb (--install):
 unable to open '/lib/x86_64-linux-gnu/libcrypto.so.0.9.8.dpkg-new': No such file or directory
Errors were encountered while processing:
 libssl0.9.8_0.9.8o-7ubuntu3.2.14.04.1_amd64.deb

I’ve tried to make such file make such directory and remove it, but nothing changed.
Do you know a way to install it using apt?
Any other way to fix it?

I am using the correct architecture (64-bit on 64-bit VM, using VMware workstation player on 64-bit windows 10).