GNU/Linux >> Linux の 問題 >  >> Linux

Linux – Epelリポジトリメタデータをプルできませんか?

このドキュメントに従ってScientificLinuxにNginxをインストールすると失敗します:

[[email protected] ~]$ sudo su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epe
l/6/x86_64/epel-release-6-8.noarch.rpm'
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch
.rpm
warning: /var/tmp/rpm-tmp.gdSOR9: Header V3 RSA/SHA256 Signature, key ID 0608b89
5: NOKEY
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
[[email protected] ~]$ sudo yum install nginx
Loaded plugins: security
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl
ease verify its path and try again
[[email protected] ~]$

バージョン情報

[[email protected] ~]$ uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Thu Nov 21 13:35:52 CST
 2013 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]$ cat /etc/*{release,version}
Scientific Linux release 6.5 (Carbon)
Scientific Linux release 6.5 (Carbon)
cat: /etc/*version: No such file or directory
[[email protected] ~]$

注: sudo yum update -y nginxのインストールを開始する前に発行されました

他のパッケージのインストールが無効になっています

[[email protected] ~]$ sudo yum install vim -y
Loaded plugins: security
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl
ease verify its path and try again
[[email protected] ~]$

URLGRABBERデバッガログ

2014-08-03 14:22:44,437 attempt 1/10: https://mirrors.fedoraproject.org/metalink
?repo=epel-6&arch=x86_64
INFO:urlgrabber:attempt 1/10: https://mirrors.fedoraproject.org/metalink?repo=ep
el-6&arch=x86_64
2014-08-03 14:22:44,438 opening local file "/var/cache/yum/x86_64/6.5/epel/metal
ink.xml.tmp" with mode wb
INFO:urlgrabber:opening local file "/var/cache/yum/x86_64/6.5/epel/metalink.xml.
tmp" with mode wb
* About to connect() to mirrors.fedoraproject.org port 443 (#0)
*   Trying IP... * connected
* Connected to mirrors.fedoraproject.org (IP) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* NSS error -8018
* Closing connection #0
* Problem with the SSL CA cert (path? access rights?)
2014-08-03 14:22:50,071 exception: [Errno 14] PYCURL ERROR 77 - "Problem with th
e SSL CA cert (path? access rights?)"
INFO:urlgrabber:exception: [Errno 14] PYCURL ERROR 77 - "Problem with the SSL CA
 cert (path? access rights?)"
2014-08-03 14:22:50,072 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raisi
ng
INFO:urlgrabber:retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl
ease verify its path and try again

nginxのインストールの前後にyumupdateを出力します

[[email protected] ~]$ sudo yum update -y
Loaded plugins: security
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Pl
ease verify its path and try again
[[email protected] ~]$

yum –disablerepo =” epel” update

[[email protected] ~]$ sudo yum --disablerepo="epel" update
Loaded plugins: security
Setting up Update Process
No Packages marked for Update

承認された回答:

以下が失敗した場合:

yum check-update

しかし:

yum --disablerepo="epel"  check-update

動作してから実行します:

URLGRABBER_DEBUG=1 yum check-update 2> debug.log

debug.logを確認してください 対象:

PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"

このメッセージが見つかった場合は、次のことを試してください。

yum --disablerepo="epel" reinstall ca-certificates

それでも問題が解決しない場合は、CA証明書を更新する必要があります:

yum --disablerepo="epel" update ca-certificates

それでも問題が解決しない場合は、現在のCA証明書をバックアップしてください:

cp /etc/pki/tls/certs/ca-bundle.crt /root/

実行:

curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt

説明

関連:Linux –電話で実行されている真のオープンソースのみのOSを入手しますか?アンドロイド?

ログには、システムのSSL証明書に関するエラーが表示されます。

システムのCA証明書バンドルが何らかの理由で破損し、yum -disablerepo="epel" reinstall ca-certificates 上記のコマンドは、単に新しいバージョンで上書きします。他のすべてのリポジトリが機能しているため、これが答えになる可能性は低いです。SSLに大きな問題があった場合、すべてのリポジトリが失敗します。

curl... 上記のコマンドは、システムのCA証明書バンドルを新しいバージョンに置き換えます。 CA証明書バンドルには、システムが信頼するすべてのルートCA証明書が含まれています。

この場合、EPELリポジトリには、システムが信頼しない新しいSSL証明書(新しいルートCAによって署名されたもの)があります。 CentOSリポジトリは、少し古い証明書で引き続き機能します。


Linux
  1. Linux / Centos/RedhatでYUMリポジトリを設定する方法| Linux / Centos/RedhatのYUM

  2. Linuxで画像メタデータを表示する方法

  3. Red Hat EnterpriseLinux8でFTPベースのYUM/DNFリポジトリを作成します

  1. Red Hat EnterpriseLinux8でApacheベースのYUM/DNFリポジトリを作成します

  2. Red Hat EnterpriseLinux8でNginxベースのYUM/DNFリポジトリを作成します

  3. Yumリポジトリを追加する方法

  1. Linux – KaliRollingとKaliSanaリポジトリ?

  2. Linux – Cpはファイルのメタデータを失いますか?

  3. Kali Linux リポジトリの HTTPS サポート