yum install —y ntp无法下载

![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/090592577846182.jpg "#

首先,你要确保可以上网,之后,去设置好yum源,因为看报错,你的yum源没弄好
不会搞,就将现有的源文件备份后,全部删除,之后重新下载国内源的文件也可以,或者自己编写内容也可以。


我喜欢用阿里源,设置方法,如下:
阿里源基础包设置方法:https://developer.aliyun.com/mirror/centos
阿里云EPEL源设置方法:https://developer.aliyun.com/mirror/epel

没有可用的仓库。先配置好仓库试试