wget 经常无法正常安装?什么鬼

执行:yum -y install wget,无法正常安装。

Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Nothing to do

卸载重新安装下,即可,执行:

#先卸载
yum remove wget
#再安装
yum -y install wget

再执行:

 

[root@VM-0-10-centos fast]# wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
--2021-04-27 11:07:56--  https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
Unable to establish SSL connection.

 

发现还是无法安装:

解决方法

加上跳过验证证书的参数“--no-check-certificate

[root@VM-0-10-centos fast]# wget --no-check-certificate  https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
--2021-04-27 11:15:53--  https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
...                                                                                                                                                                                                                         ] 73,148       154KB/s   in 0.5s   
2021-04-27 11:15:56 (154 KB/s) - ‘V1.0.7.tar.gz’ saved [73148]

[root@VM-0-10-centos fast]# ll
total 72
-rw-r--r-- 1 root root 73148 Apr 27 11:15 V1.0.7.tar.gz
[root@VM-0-10-centos fast]# 
posted @ 2021-04-27 11:15  Dkwestworld  阅读(728)  评论(0编辑  收藏  举报