【问题标题】:yum in linux not working [closed]linux中的yum不工作[关闭]
【发布时间】:2013-07-09 16:29:39
【问题描述】:

我尝试在我的 linux 中安装乘客。而且,当我使用

yum update

回应是

Loaded plugins: priorities, security, update-motd, upgrade-helper
amzn-main                                                         | 2.1 kB     00:00     
amzn-main/primary_db                                              | 2.4 MB     00:00     
amzn-updates                                                      | 2.3 kB     00:00     
amzn-updates/primary_db                                           | 700 kB     00:00     
http://passenger.stealthymonkeys.com/rhel/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://passenger.stealthymonkeys.com/rhel/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://mirror.hmdc.harvard.edu/mirrors/passenger/rhel/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: passenger. Please verify its path and try again

太奇怪了,我的linux怎么了?

是的,服务器是redhat。

【问题讨论】:

  • 请提供更多系统信息?
  • 是的,服务器是redhat。

标签: linux passenger yum


【解决方案1】:

来自linuxquestions上的bigrigdriver

错误可能在您的 /etc/yum.conf 中,或者在 /etc/yum.repos.d/.repos。如果回购地址进入一级目录 太深(到 repodata 文件夹)你会得到那个错误。

复制您的 repo 文件中的 url 并粘贴到浏览器中。它应该 带您到存储库站点。如果它最终出现在 repodata 文件夹中 (repmod.xml 文件所在的位置),在 目录树,以便您看到一棵树,其中包含以下文件夹:i585 i686 noarch ppc repodata x86_64

这应该是 repo url 中的最后一级。百胜会发现 repodata 文件夹和 repmod.xml,并为您应用必要的数据 安装(32 位或 64 位)。

【讨论】:

  • 我来到/etc/yum.repos.d/,删除passenger.repo。然后,一切都很好。谢谢!
  • 删除passenger.repo也对我有用。
【解决方案2】:

http://passenger.stealthymonkeys.com/rhel/latest 不存在。这意味着您的 Yum 配置已过期。

您可以编辑/etc/yum.repos.d/... 以将latest 替换为6rolling。或者您可以尝试从http://passenger.stealthymonkeys.com/ 重新安装passenger-release.noarch.rpm,这可能会为您完成。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-10
    • 1970-01-01
    • 2016-05-09
    相关资源
    最近更新 更多