LoginSignup
38
30

More than 5 years have passed since last update.

CentOS6.xでEPELリポジトリ入れたときのエラー対処

Posted at

現象

CentOS6.xで以下を実行して

$ sudo yum -y install epel-release

以下などを実行すると

$ sudo yum -y update

以下のエラーが発生します。

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

解決

以下のエントリーのおかげで解決しました。
CentOS 6.3 Instance Giving "Cannot retrieve metalink for repository: epel" Error

EPELリポジトリがSSL3.0を使っているのが原因とのことで、記事の通り以下を実行してhttps→httpに変更することで解決しました。

$ sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
38
30
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
30