yum安装软件报错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?relea

yum的源出现问题:

下载yum文件,替代原始yum源:

(1)网易yum源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

yum clean all //清除缓存

yum makecache //生成缓存

解析:wget -o,使用"-o"参数来指定一个文件名

(2)阿里云yum源:

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

yum clean all

yum makecache

此时发现系统未安装wget :

使用wget命令去下载应用时,提示" wget: command not found"。

rmp包安装

安装包下载地址wget安装包下载:地址https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/

下载完传到centos服务器上:

#安装
rpm -ivh wget-1.14-18.el7_6.1.x86_64.rpm

#核验安装
rpm -qa|grep "wget"

相关推荐
开开心心就好13 分钟前
能把网页藏在Word里的实用摸鱼工具
linux·运维·服务器·windows·随机森林·逻辑回归·excel
Lucis__19 分钟前
Linux网络:基于协议栈原理实现UDP通信
linux·网络·udp
老绿光20 分钟前
Python 字典完全指南:从入门到实战
linux·服务器·python
tryCbest26 分钟前
Nginx常用操作命令-Linux和Windows系统
linux·windows·nginx
何中应1 小时前
如何给虚拟机系统扩容
linux·运维·服务器
缘友一世1 小时前
tmux 共享终端:AI 模型执行命令的实时审计方案
linux·llm·tmux·agent终端交互审计
沐雪轻挽萤1 小时前
无人系统:Ubuntu 操作系统全景架构与实战工程指南
linux·运维·ubuntu
白緢1 小时前
嵌入式 Linux + 内核开发高频问题及排查
java·linux·运维
蜡笔小新..2 小时前
Linux下Matplotlib使用Times New Roman字体的解决方案
linux·运维·matplotlib
洪流之源2 小时前
图像格式转换与内存对齐详解
linux