centos安装wget命令遇到的问题

起初我只是想使用如下命令却出现这样的提示

yum -y install ntp

image
解决办法

yum -y install yum-utils

但是问题是使用上面命令也实现同样提示
image
使用下面的命令后再使用yum -y install yum-utils

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

使用下面命令下载wget

yum install wget

最终可以使用(CentOS-7)

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

删除yum.repos.d目录下所有文件

rm -f /etc/yum.repos.d/*

大佬文章

Run "yum repolist all" to see the repos you have.

linux yum install **** 提示:Loaded plugins: fastestmirror
给centos重新安装yum的base-repo源

posted @ 2023-05-23 22:21  停或走  阅读(104)  评论(0编辑  收藏  举报