Certbotをインストールしようとepelリポジトリを指定しました。
$ sudo yum install --enablerepo=epel certbot-nginx
すると下記のエラーが出ます。
One of the configured repositories failed (不明), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this:
このエラーを調べると、DNSやgatewayに問題があると出てきましたが、epelを指定してしなければ正常に動作します。
$ sudo yum install php 総ダウンロード容量: 7.7 M インストール容量: 27 M Is this ok [y/d/N]: N
また名前を指定したping(ping -c 2 www.yahoo.co.jp)を実行してみると、名前解決はできています。
キャッシュのクリア(yum clean all)もしてみましたが、変化がありません。
$ sudo yum clean all 読み込んだプラグイン:fastestmirror, langpacks リポジトリーを清掃しています: base extras gitlab_gitlab-ce gitlab_gitlab-ce-source updates Cleaning up everything Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos Cleaning up list of fastest mirrors
このエラーの対応方法を教えてください。
gitlabをインストールした時に古いバージョンを入れてその時に" --nogpgcheck"を
指定していることは関係あるのでしょうか?
そもそも「epel」の名称でリポジトリ設定(yum.repos.d以下のファイル)をしていますか?
確認してみました。
$ ls /etc/yum.repos.d/
CentOS-Base.repo CentOS-Sources.repo epel.repo
CentOS-CR.repo CentOS-Vault.repo gitlab_gitlab-ce.repo
CentOS-Debuginfo.repo CentOS-fasttrack.repo
CentOS-Media.repo epel-testing.repo
showkitさん リンク先を拝見しました。epelのインストール時はenabled=1でしたので現在はenabled=0にしてあります。yum実行時に --enablerepo=epelを指定しました。こうしないと、yum installがなにもできなくなるのでこれで回避しています。

回答1件
あなたの回答
tips
プレビュー