错误:无法检索存储库的存储库元数据(repomd.xml):chromium。请验证其路径,然后重试

时间:2017-10-06 08:53:07

标签: centos yum

  

当我尝试使用" yum"进行更新时发生以下错误命令。   没有任何互联网连接问题。我只是试图获得从Red-Hat文章中获取错误消息的解决方案。但   Red Hat的知识库支持仅适用于活跃用户。

[cloudera@quickstart /]$ sudo yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                 | 3.9 kB     00:00     
 * base: ftp.iitm.ac.in
 * epel: mirror2.totbb.net
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
 * webtatic: sp.repo.webtatic.com
http://install.linux.ncsu.edu/pub/yum/itecs/public/chromium/6/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: chromium. Please verify its path and try again
[cloudera@quickstart /]$    

1 个答案:

答案 0 :(得分:2)

  

我设法解决了这个问题。

[cloudera@quickstart ~]$ cd /
[cloudera@quickstart /]$ cd etc/yum.repos.d
[cloudera@quickstart yum.repos.d]$ sudo vi chromium.repo
  

在chromium.repo文件中的波纹管文本块中编辑“enabled = 1”行   as“enabled = 0”

[chromium]
name=chromium for RHEL Linux $releasever - $basearch - Base
baseurl=http://install.linux.ncsu.edu/pub/yum/itecs/public/chromium/$releasever/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-chromiumpublic file:///etc/pki/rpm-gpg/RPM-GPG-KEY-chromiumpublic1 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-chromiumpublic2

[chromium-source]
name=chromium for RHEL Linux $releasever - $basearch - Source
baseurl=http://install.linux.ncsu.edu/pub/yum/itecs/public/chromium/$releasever/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-chromiumpublic file:///etc/pki/rpm-gpg/RPM-GPG-KEY-chromiumpublic1 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-chromiumpublic2
gpgcheck=1
  

然后尝试了“sudo yum update all”命令,如下所示。下雪了   为我工作

[cloudera@quickstart ~]$ 
[cloudera@quickstart ~]$ sudo yum update all
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                 | 3.9 kB     00:00     
 * base: ftp.iitm.ac.in
 * epel: mirror2.totbb.net
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
 * webtatic: sp.repo.webtatic.com
chromium-el6                                                                                                                                                                  | 1.9 kB     00:00     
chromium-el6/primary_db                                                                                                                                                       |  17 kB     00:00     
cloudera-cdh5                                                                                                                                                                 |  951 B     00:00     
cloudera-cdh5/primary                                                                                                                                                         |  43 kB     00:00     
cloudera-cdh5                                                                                                                                                                                146/146
cloudera-gplextras5                                                                                                                                                           |  951 B     00:00     
cloudera-gplextras5/primary                                                                                                                                                   | 2.4 kB     00:00     
cloudera-gplextras5                                                                                                                                                                              9/9
cloudera-kafka                                                                                                                                                                |  951 B     00:00     
cloudera-manager                                                                                                                                                              |  951 B     00:00     
cloudera-manager/primary                                                                                                                                                      | 4.3 kB     00:00     
cloudera-manager                                                                                                                                                                                 7/7
epel                                                                                                                                                                          | 4.3 kB     00:00     
http://mirror2.totbb.net/epel/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
epel                                                                                                                                                                          | 4.3 kB     00:00     
epel/primary_db                                                                                                                                                               | 5.9 MB     00:22     
extras                                                                                                                                                                        | 3.4 kB     00:00     
extras/primary_db                                                                                                                                                             |  29 kB     00:00     
updates                                                                                                                                                                       | 3.4 kB     00:00     
updates/primary_db                                                                                                                                                            | 4.2 MB     00:02     
webtatic                                                                                                                                                                      | 3.6 kB     00:00     
webtatic/primary_db                                                                                                                                                           | 208 kB     00:00     
No Match for argument: all
No package all available.
No Packages marked for Update
[cloudera@quickstart ~]$