yum源都放在 /etc/yum.repos.d/ 首先进行备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 然后下载对应的yum源配置文件到/etc/yum.repos.d/这个目录下 k8s源。。 ali云源。。 中科大源。。 清华源。。 运行yum makecache生成缓存 yum makecache