首页 > 系统相关 >解决liunx yum -y install wget安装失败

解决liunx yum -y install wget安装失败

时间:2022-10-15 09:33:17浏览次数:72  
标签:插件 00 repo yum liunx install wget

在终端执行yum -y install wget时,终端提示:

已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
docker-ce-stable | 3.5 kB 00:00:00
没有可用软件包 wget。
错误:无须任何处理

然后到网上找说

yum -y install wget

就可以了,可是,还是不行

已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
没有可用软件包 wget。
错误:无须任何处理


我安装的是纯净版的centos7不知道哪里来的fastestmirror,这个插件什么东西都没有,
最后没有办法了,只能换一个yum,换一个国内的源,比较快就是我们常见的阿里的yum,

解决方法
在终端运行

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

然后再下载wget

yum -y install wget
https://blog.csdn.net/weixin_39025362/article/details/105836169

标签:插件,00,repo,yum,liunx,install,wget
From: https://www.cnblogs.com/nbfangzhu/p/16793583.html

相关文章