Ubuntu – How to downgrade openssl via apt-get

aptopenssl

After a recent upgrade, I am having some SSL connection problems. I would like to downgrade openssl temporarily to see if the issues go away.

The current version of openssl installed is 1.0.1-4ubuntu5.32 and the previous version was 5.31. However, when I try:

apt-get install openssl=1.0.1-4ubuntu5.31

I get:

E: Version '1.0.1-4ubuntu5.31' for 'openssl' was not found

I thought this was the correct procedure for installation a specific version?

Best Answer

I do not believe that a downgrade will solve your problem. But you asked:

The package openssl=1.0.1-4ubuntu5.31 isn't longer in the Precise repositories, because the latest version is now 1.0.1-4ubuntu5.32. But the package is still available in the PPA of the “Ubuntu Security Team” team.

For version 1.0.1-4ubuntu5.31

wget https://launchpad.net/~ubuntu-security/+archive/ubuntu/ppa/+build/7531893/+files/openssl_1.0.1-4ubuntu5.31_amd64.deb
sudo dpkg -i openssl_1.0.1-4ubuntu5.31_amd64.deb

But I suspect that you have to downgrade other packages listed here.

The downgrade is temporary. After a

sudo apt-get upgrade

or for a better feeling a

sudo apt-get dist-upgrade

the latest version will we installed again.