天天看點

阿裡雲 Centos8 報錯“Error: Failed to synchronize cache for repo 'epel-modular'”解決方案

阿裡雲已經上線centos8系統,8系列的比較新,系統預設沒安裝git,想安裝下 yum install git 直接報錯 “Error: Failed to synchronize cache for repo 'epel-modular'”,擴充源報錯,百度完全無解決方案,那隻能自己解決了!

解決方法很簡單:

方案一:直接删除/etc/yum.repos.d(先備份)

目錄下epel開頭的檔案

阿裡雲 Centos8 報錯“Error: Failed to synchronize cache for repo 'epel-modular'”解決方案

就可以yum了。

方案二:

yum 成功 但是提示程式不存在無法安裝

不删除 /etc/yum.repos.d裡面的檔案

編輯

vi /etc/resolv.conf
           

加上 

nameserver 114.114.114.114
           

儲存

再執行yum 成功

阿裡雲最近上線centos8,預設DNS居然無法解析擴充庫域名。