解決yum安裝失敗的一些經驗
阿新 • • 發佈:2018-12-26
yum安裝遇到的一些問題,今天mark一下
1.problem:
yum -y install docker-io
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
http://download.fedoraproject.org/pub/epel/6/i386/repodata/repomd.xml: [Errno 14] problem making ssl connection
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
問題一開始其實沒找準,問題在於紅字部分,明顯在提醒我 ssl 連結失敗, 百度一下是證書過期,
solve:1.將 /etc/yum.repos.d/epel.repo 的enable改為0,
2.下載證書,yum install ca-certificates
3.安裝成功後將步驟1的enable 改回1