【问题标题】:Error: Cannot retrieve repository metadata (repomd.xml) for repository: chromium. Please verify its path and try again错误:无法检索存储库的存储库元数据 (repomd.xml):铬。请验证其路径并重试
【发布时间】:2018-10-06 03:25:28
【问题描述】:

当我尝试使用“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 /]$    

【问题讨论】:

    标签: centos yum


    【解决方案1】:

    我通过这样做设法解决了这个问题。


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

    在 chromium.repo 文件中的以下文本块中编辑“enabled=1”行 作为“启用=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 ~]$
    

    【讨论】:

      猜你喜欢
      • 2019-05-02
      • 1970-01-01
      • 1970-01-01
      • 2014-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-08
      • 1970-01-01
      相关资源
      最近更新 更多