解決CentOS的yum沒法安裝https來源的epel問題

yum安裝NodeJS在訪問鏡像列表時出現404,升級yum更新epel以後則出現這個錯誤: 「Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again」git

經過Google得知:緣由github

yum-epel升級到0.5.2版本,更換了https連接,因此原來的鏡像列表就過期了,砸地。get

解決方法是,運行:yum --disablerepo=epel -y update ca-certificatesit

記住必定要加上--disablerepo=epel,不然怎麼都更新不了百度

固然你閒得蛋疼也能夠手動去改鏡像列表。date

這個問題說明了不會用Google害死人,百度能夠再見了。meta

相關文章
相關標籤/搜索