0

敬启者:

我在我的服务器上运行 CentOS 6.5。当我以 root 用户身份输入 yum update 时,我不断收到以下错误:

[root@dbtest /]# yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile

epel/metalink                                            |  14 kB     00:00
 * epel: mirror.steadfast.net
 * passenger: mirror.hmdc.harvard.edu
   http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/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: Updates-ambari-1.x. Please
   verify its path and try again

我正在使用这两个链接来帮助我: https ://www.webmaster.net/fix-pycurl-error-22-the-requested-url-returned-error-404-not-found/

据我所知,我认为我收到此错误的原因是 /etc/yum.repos.d 目录下的 ambari.repo 存储库文件有问题。

我的问题是我能做些什么来修复 ambari.repo 文件(如果有的话),我能做些什么才能成功地执行 yum 更新任务而不会出现任何错误?

这就是 ambari.repo 文件的内容。任何帮助都将不胜感激。

我还想提一提的是我对 CentOS-Base.repo 文件进行了更改

4

1 回答 1

1

该网址不正确。在线快速搜索将ambari repo我带到此页面,这似乎表明正确的路径是现在http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.2.3.7/,并且您可以从http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.2.3.7/ambari.repo.

于 2014-12-03T20:50:31.710 回答