2017-01-27 36 views
1

当我使用'apt-get install openssl'时,我的Ubuntu 16.04安装了OpenSSL 1.0.2g版本。我希望安装1.1.0版本。为什么'apt-get install openssl'没有安装最新版本的OpenSSL?

为什么不安装1.1.0版本?我如何安装最新版本?

谢谢。

+0

Stack Overflow是编程和开发问题的网站。这个问题似乎与题目无关,因为它不涉及编程或开发。请参阅帮助中心的[我可以询问哪些主题](http://stackoverflow.com/help/on-topic)。也许[超级用户](http://superuser.com/)或[请求Ubuntu](http://askubuntu.com/)会是一个更好的地方。 – jww

+0

*“我如何安装最新版本?”* - 请参阅OpenSSL wiki上的[编译和安装](https://wiki.openssl.org/index.php/Compilation_and_Installation)。您也许能够找到[Ubuntu PPA](https://launchpad.net/ubuntu/+ppas)。 – jww

+2

它与编程和开发生态系统有关,因此它不是无关紧要的。 – egidiocs

回答

11

您应该选择要在OpenSSL's网站上安装的版本。看来你想安装1.1.0。 因此,请按照以下步骤操作。

wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz 
tar xzvf openssl-1.1.0f.tar.gz 
cd openssl-1.1.0f 
./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)' 
make 
sudo make install 

openssl version -a 

完成。它是如此简单。 祝你好运。

+0

我必须删除以前的版本吗? – egidiocs

+0

这取决于你的目的和环境。如果您只是在PC上安装OpenSSL不同版本,只需安装新版本即可。如果不止于此,请告诉我更多关于你在做什么的事情。 –

+0

@ edson.a.soares可以请你帮我解决我的问题https://stackoverflow.com/questions/48776525/unable-to-install-openssl-1-1-on-ubuntu-8? – RanPaul