---
title: "Linux安装扩展源epel并更新证书"
author: "canlynet"
date: "2019-05-14T15:33:35Z"
tags: []
categories: ["操作系统"]
slug: "linux-epel"
draft: false
lastmod: "2019-05-14T15:33:35Z"
id: 2440930
url: "https://canlynet.iteye.com/blog/2440930"
---

今天更新linux上的软件hddtemp发现一台centos6.4无法下载，报错如下：

Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

网上查找各种方法都不好用，最后在百度知道找到了正确解决办法：

[https://zhidao.baidu.com/question/940110168806367212.html](https://zhidao.baidu.com/question/940110168806367212.html)

 

更新[CA证书](https://www.baidu.com/s?wd=CA%E8%AF%81%E4%B9%A6&tn=SE_PcZhidaonwhc_ngpagmjz&rsv_dl=gh_pc_zhidao)就可以，不过在此同时需要临时禁用epel源并更新就可以了，命令如下：  
yum --disablerepo=epel -y update ca-certificates

运行过后，一切好使。