【问题标题】:Cannot retrieve repository metadata for repository: epel (rhel 6.6)无法检索存储库的存储库元数据:epel (rhel 6.6)
【发布时间】:2015-04-15 15:25:18
【问题描述】:

我试图在其中一个测试 rhel 盒子上安装 linux nrpe 代理以供 nagiosxi 监控,当我运行 fullinstall 脚本时,我收到以下错误

[root@nrpetest2 linux-nrpe-agent]# ./fullinstall
============================
Nagios Linux Agent Installer
============================

This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a clean installed system:

   RedHat Enterprise, CentOS, Fedora, or Oracle
   OpenSUSE or SUSE Enterprise
   Ubuntu or Debian

Do NOT use this on a system running any other distro or that
does not allow additional package installation.

Do you want to continue? [Y/n] y
Proceeding with installation...
Running './0-repos'...
Configuring Repos...
Enabling EPEL repo...
Installing EPEL PKG: ./packages/epel-release-6-5.noarch.rpm
warning: ./packages/epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ##################################################
epel-release                ##################################################
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
epel-release RPM installed OK
Repos configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

失败的脚本是:'./1-prereqs'

我也在 RedHat 网络上注册了它,我到处搜索以找到解决此错误的方法,但没有运气。

【问题讨论】:

    标签: redhat rhel


    【解决方案1】:

    您似乎缺少安装 nagios 所需的 epel-release。 你试过sudo yum install epel-release吗?

    根据您的说法,这将是我最大的猜测:

    错误:无法检索存储库的存储库元数据 (repomd.xml):epel。请验证其路径并重试 RESULT=1

    失败的脚本是:'./1-prereqs'

    另外,检查以确保您的代理设置允许连接到该存储库。有时这会导致下载某些 repo 数据出现问题。

    因此,简而言之,更新您的 epel-release 并确保任何其他先决条件都已更新。这样做可能不会有什么坏处:sudo yum install yum-utils 以确保 yum-utils 完全是最新的。

    更新:来自:Access Redhat

    1. 验证 Satellite 或代理服务器是否具有完全限定的域名,以及 SSL 证书中的 CommonName。 Apache 使用的域名设置为完全限定域名。
    2. 验证 ssl.conf 文件是否指向正确的文件。
      grep ^SSLCert /etc/httpd/conf.d/ssl.conf
    3. 如果系统指向代理,请检查以确保 /etc/sysconfig/rhn/up2date 配置了正确的 http_proxy 信息。
      httpProxy=http_proxy_fqdn or ip_address:port
    4. 更新 yum 到最新版本:yum update yum
    5. 清除客户端系统上的缓存:rm -rf /var/cache/yum/*

    【讨论】:

    • 当我运行 yum install epel-release 它仍然给出存储库元数据错误..和 yum-utils 一样
    • @WajahatMakki 您很可能有代理设置阻止您获取这些存储库
    • @WajahatMakki 我刚刚添加了很多信息,试试这些更新的步骤。
    • 好吧,我实际上是通过删除 /etc/yum.repos.d.. 中的 epel 文件来让它工作的。无论如何,谢谢!
    猜你喜欢
    • 1970-01-01
    • 2016-06-25
    • 1970-01-01
    • 2016-07-24
    • 1970-01-01
    • 2019-05-02
    • 1970-01-01
    • 2016-10-10
    • 1970-01-01
    相关资源
    最近更新 更多