For people that might not have all of that going on they could use the openssl 1.0 package similar to this. $ wget http://right package source here /libssl-dev_1.0.2g-1ubuntu9.3_amd64.deb
$ sudo dpkg -i libssl-dev_1.0.2g-1ubuntu9.3_amd64.deb
(Reading database ... 225031 files and directories currently installed.)
Preparing to unpack libssl-dev_1.0.2g-1ubuntu9.3_amd64.deb ...
Unpacking libssl-dev:amd64 (1.0.2g-1ubuntu9.3) over (1.0.2g-1ubuntu9.3) ...
Setting up libssl-dev:amd64 (1.0.2g-1ubuntu9.3) ...
$ sudo apt-mark hold libssl-dev libssl-dev set on hold.