解决方法:
locate libssl.so.1.0.0
sudo rm /usr/local/lib/libssl.so.1.0.0
sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/local/lib/libssl.so.1.0.0
sudo rm /usr/local/lib/libcrypto.so.1.0.0
用ldd /usr/bin/openssl查一下再删除比较靠谱
一、使用wget命令报错:
➜ nginx wget
wget: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by wget)
wget: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/local/lib/libssl.so.1.0.0)
wget: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/local/lib/libssl.so.1.0.0)
wget: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/local/lib/libssl.so.1.0.0)
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
二、使用ldd /usr/bin/openssl查询引用
➜ nginx ldd /usr/bin/openssl
/usr/bin/openssl: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/local/lib/libssl.so.1.0.0)
/usr/bin/openssl: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/local/lib/libssl.so.1.0.0)
/usr/bin/openssl: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/local/lib/libssl.so.1.0.0)
linux-vdso.so.1 => (0x00007ffe65931000)
libssl.so.1.0.0 => /usr/local/lib/libssl.so.1.0.0 (0x00007f3a09aae000)
libcrypto.so.1.0.0 => /usr/local/lib/libcrypto.so.1.0.0 (0x00007f3a0965a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3a09291000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3a0908c000)
/lib64/ld-linux-x86-64.so.2 (0x000055bb1a158000)
➜ nginx ll /usr/local/lib/libcrypto.so.1.0.0
lrwxrwxrwx 1 root root 41 10月 24 21:19 /usr/local/lib/libcrypto.so.1.0.0 -> /usr/local/openssl/lib/libcrypto.so.1.0.0
三、删除
➜ nginx sudo rm /usr/local/lib/libcrypto.so.1.0.0
[sudo] password for brian:
四、恢复正常
➜ nginx wget
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
五、参考:
https://blog.csdn.net/disadministrator/article/details/76642801
https://askubuntu.com/questions/830466/libcrypto-so-1-0-0-no-version-information-available-required-by-ssh