centos7更新失敗,執行yum update -y提示:Could not retrieve mirrorlist http://www.l.com?arch=x86_64&release=7&repo=sclo-rh 。
懷疑是更新源方面出錯了,更換為aliyun的源之后還是報錯,無法執行更新。
執行yum clean all && yum makecache重新生成緩存也報錯。
查看在/etc/yum.repos.d里面除了新設置的源centos-Base.repo,還有其他 *.repo文件,將其他的*.repo全部刪除。
重新執行yum clean all && yum makecache重新生成緩存正常。
再次嘗試升級
更新正常。