备份原镜像文件 备份你的原镜像文件,以免出错后可以恢复。 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 直接编辑 vi /etc/yum.repos.d/CentOS-Base.repo 导入以下任一镜像源 清华大学镜像源 # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick