输入后openssl version
出现以下内容:
The program 'openssl' is currently not installed. You can install it by typing:
sudo apt-get install openssl
输入后sudo apt-get install openssl
显示已经安装:
~$ sudo apt-get install openssl
[sudo] password for systemagic:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version..
0 to upgrade, 0 to newly install, 0 to remove and 6 not to upgrade.
尝试找到它 - 我可以看到有一个文件./usr/bin/openssl
/$ sudo find -name "openssl"
./etc/apparmor.d/abstractions/openssl
./etc/bash_completion.d/openssl
./usr/bin/openssl
./usr/share/doc/openssl
导航到此目录,它会将 openssl 显示为存档文件(红色)。
请您帮助使命令行正常工作。服务器已修补并重新启动。正在运行,Ubuntu 12.04.4 LTS
并且存在以下内容:
ii libflac8:i386 1.2.1-6 Free Lossless Audio Codec - runtime C library
ii libio-socket-ssl-perl 1.53-1 Perl module implementing object oriented interface to SSL sockets
ii libnet-ssleay-perl 1.42-1build1 Perl module for Secure Sockets Layer (SSL)
ii libssl0.9.8:i386 0.9.8o-7ubuntu3.1 SSL shared libraries
ii libssl1.0.0 1.0.1-4ubuntu5.12 SSL shared libraries
ii libssl1.0.0:i386 1.0.1-4ubuntu5.12 SSL shared libraries
ii libwavpack1:i386 4.60.1-2 audio codec (lossy and lossless) - library
ii openssl 1.0.1-4ubuntu5.12 Secure Socket Layer (SSL) binary and related cryptographic tools
ii python-openssl 0.12-1ubuntu2.1 Python wrapper around the OpenSSL library
ii ssl-cert 1.0.28ubuntu0.1 simple debconf wrapper for OpenSSL
答案1
如果您的安装已损坏,您可以通过重新安装 openssl 和 libssl 来修复 OpenSSL,如下所示:
sudo apt-get --reinstall install openssl libssl1.0.0