linux下yum错误:[Errno 14] problem making ssl connection Trying other mirror.
生活随笔
收集整理的這篇文章主要介紹了
linux下yum错误:[Errno 14] problem making ssl connection Trying other mirror.
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
所有的base 都要取消注釋 mirrorlist 加上注釋
另外所有的enable都要設(shè)為零
目錄
今天是要yum命令安裝EPEL倉(cāng)庫(kù)后
yum install epel-release
突然發(fā)現(xiàn)yum安裝其他的軟件出錯(cuò)。
錯(cuò)誤:
[Errno 14] problem making ssl connection Trying other mirror.
Trying other mirror
Error: Cannot retrieve repository metadata (repomd.xml) for repository: xxxx. Please verify its path and try again
于是去網(wǎng)上查了查,發(fā)現(xiàn)許多解決方法。似乎是ssl證書的原因,最終選擇
[root@redhat2 ~]# cd /etc/yum.repos.d/ [root@redhat2 yum.repos.d]# ls CentOS6-Base-163.repo epel.repo(修改他) epel-testing.repo [root@redhat2 yum.repos.d]# pwd /etc/yum.repos.d [root@redhat2 yum.repos.d]#
vim /etc/yum.repos.d/epel.repo
[epel] name=Extra Packages for Enterprise Linux 6 - $basearch baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
將baseurl注釋去掉,為mirrorlist加上注釋。然后將enabeld=1變?yōu)?,禁用ssl證書驗(yàn)證。
找到了兩種方法(都使用了):
yum install ca-certificates yum update curl
然后再將enable設(shè)置為1即可
作者:山上有風(fēng)景
歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處。
限于本人水平,如果文章和代碼有表述不當(dāng)之處,還請(qǐng)不吝賜教。
<div id="blog_post_info">
好文要頂 關(guān)注我 收藏該文
山上有風(fēng)景關(guān)注 - 20
粉絲 - 195 +加關(guān)注 1 0 關(guān)注 ?|? 頂部 ?|? 評(píng)論
<div class="clear"></div>
<div id="post_next_prev"><a href="https://www.cnblogs.com/ssyfj/p/9176015.html" class="p_n_p_prefix">? </a> 上一篇: <a href="https://www.cnblogs.com/ssyfj/p/9176015.html" title="發(fā)布于 2018-06-13 08:56">linux下sudo命令</a>
<br>
<a href="https://www.cnblogs.com/ssyfj/p/9179587.html" class="p_n_p_prefix">? </a> 下一篇: <a href="https://www.cnblogs.com/ssyfj/p/9179587.html" title="發(fā)布于 2018-06-13 20:06">linux下安裝shellinabox實(shí)現(xiàn)web登錄服務(wù)器</a>
總結(jié)
以上是生活随笔為你收集整理的linux下yum错误:[Errno 14] problem making ssl connection Trying other mirror.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: RPC远程调用通俗理解
- 下一篇: linux搜索文件