本文介绍: 最后尝试 wgeturl” 又OK了,一般是原来的wget初始化文件损坏造成的。卸载 wget 工具下载 wget 工具

1、报错bash: wget: command not found

可以重装 wget 工具

卸载 wget 工具

yum remove wget

下载 wget 工具

yum -y install wget

最后尝试 wgeturl” 又OK了,一般是原来的wget初始化有文件损坏造成的。

如果还是不能执行wget url 命令,依旧报错bash: wget: command not found,就执行如下命令

1)卸载 wget 工具

yum remove wget

2)清除yum缓存

rm -rf /var/cache/yum/*

3)清除所有yum

yum clean all

4)显示仓库列表

yum repolist

5)下载 wget 工具

yum -y install wget

参考链接

1. 已经安装完【wget】,但是执行【wget url】时还是提示:“-bash: wget: command not found”

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注