首页 > 系统相关 >解决:-bash: wget: 未找到命令,yum -y install wget却又报没有可用软件包

解决:-bash: wget: 未找到命令,yum -y install wget却又报没有可用软件包

时间:2022-12-09 00:55:25浏览次数:69  
标签:插件 centos yum install 软件包 wget

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

[root@master1-2 redis]# yum install wget -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
http://vault.centos.org/centos/7/extras/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
正在尝试其它镜像。
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

没有可用软件包 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

标签:插件,centos,yum,install,软件包,wget
From: https://www.cnblogs.com/LEPENGYANG/p/16967845.html

相关文章

  • python升级带来的yum异常:File
    CentOS7升级Python到3.5。2后,需要在/usr/bin/python创建了一个指向Python3的软连接,然后将/usr/bin/yum的顶部的:!/usr/bin/python改成了!/usr/bin/python2.7后,运行yum,还是......
  • 安装CAD时弹出 windows installer
    安装过程弹出“windowsinstaller”要选择,一般是重装后出现的问题,卸载不干净存在的问题解决方法是你要找到人家说的那个文件,那我们哪知道在哪里啊,我们需要安装一款软件“L......
  • centos7下通过yum安装mysql。
    1.检查mysql是否安装yumlistinstalled|grepmysql如果有的话就全部卸载:yum-yremove+数据库名称2.MySQL依赖libaio,所以先要安装libaioyumsearchlibaio#检索相......
  • Configuration failed to find libgit2 library. Try installing
    docker里面安装r包install.packages(“easypackages”)报错:Configurationfailedtofindlibgit2library.Tryinstalling:brew:libgit2(MacOS)deb:libgit2-dev(D......
  • 安装完python3,删掉了centos自带的python2,执行yum出错。
    bash:/usr/bin/yum:/usr/bin/python:badinterpreter:Nosuchfileordirectory原因删掉了centos自带的python。这是因为yum采用python作为命令解释器,原来系统自带......
  • yum localinstall离线安装,有依赖关系的rpm包
    yuminstall会搜索yum源下载安装。 如果一个rpm所有的依赖都下载好,直接本地安装,怎么做? 这就用到yumlocalinstall命令。 具体的安装步骤有2步: 1、将软件及其......
  • eclipse 引入本地 jar 后, maven install 报 程序包不存在
    对接海康,引入本地jar包后,maveninstall报错: 程序包com.hikvision.artemis.sdk不存在 程序包com.hikvision.artemis.sdk.config不存在解决方式: 1、在pom.xml同级目录下......
  • yum -y install centos-release-gluster安装报错
    创建完yum仓库yum安装报错yum安装centos-release-gluster安装报错:版本过高,先解除依赖关系(极大可能)建完yum仓库再三检查没错,甚至有很多人yumcleanall&&yumcakecache......
  • centos 添加yum源失败,ping 百度没响应
    1、curl-o/etc/yum.repos.d/CentOS-Base.repohttps://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo执行命令,一直没有成功2、检查是否ping的通百度,结果没有反......
  • 5分钟,使用yum方式完成mysql安装
    跟着老万,教你5分钟使用yum方式安装mysql。最近打算写一些关于mysql的系列文章,作为第一篇,来教大家如何快速的使用yum命令在线安装mysql。安装的linux环境是7.5,mysql安装的5.7......