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"

相关推荐
拉不拉斯19 分钟前
Linux 性能调优实战指南:从 perf 实时监控到火焰图生成
linux·运维·服务器·perf
小生迷途知返42 分钟前
影响巨大!Linux 提权大洞速速复现!!!暂无补
linux·运维·服务器
IMPYLH1 小时前
Linux 的 wc 命令
linux·运维·服务器·前端·bash
zxy6444924732 小时前
Centos7.9编译安装PHP7.4
linux·运维·服务器
无限进步_2 小时前
【Linux】从冯诺依曼到操作系统:理解计算机运行的基本脉络
linux·运维·服务器
happybasic2 小时前
Python库升级标准流程~
linux·前端·python
Rabbit_QL2 小时前
【ln -s】Linux 软链接在大模型部署中的应用
linux·运维·服务器
坤昱2 小时前
cfs调度类深入解刨——核心结构细节分析
linux·cfs调度·eevdf调度·linux调度·linux技术
枳实-叶3 小时前
【Linux驱动开发】第12天:Linux设备树核心:树形结构+节点+属性 完整全解
linux·运维·驱动开发
Yeats_Liao3 小时前
物联网接入层技术剖析(三):epoll在JVM中的映射
java·linux·jvm·人工智能·物联网