Error cannot retrieve repository metadata repomd xml

I'm using CentOS 6.3. When I try to update my system with yum I have this message: yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.ircam.fr *

In my case, which is really exceptional, the location of the XML file which contains the repo information is changed.

  • I have Internet connection (ping 8.8.8.8 works)
  • When I run yum upgrade, after a lot of 404 error, I can get the names of packages I must download, but I cannot download them.

And, when I browse into the first 404 repo URL, which is:

http://mirror.airenetworks.es/CentOS/7.4.1708/os/x86_64/repodata/repomd.xml

and I see it absent. Going to its parent folder http://mirror.airenetworks.es/CentOS/7.4.1708/readme I get this:

This directory (and version of CentOS) is deprecated. For normal users,
you should use /7/ and not /7.4.1708/ in your path. Please see this FAQ
concerning the CentOS release scheme:

https://wiki.centos.org/FAQ/General

If you know what you are doing, and absolutely want to remain at the 7.4.1708
level, go to http://vault.centos.org/ for packages.

Please keep in mind that 7.4.1708 no longer gets any updates, nor
any security fix’s.

So, I have to go back to /etc/yum.repo.d to edit the files.

I have:

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

I suspect that $releasever is no more in use, so I can test by changing it to 7:(remember to escape & with )

curl http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=arch

we can get a list of files:

ftp://ftp.cesca.cat/centos/7.5.1804/os/x86_64/
http://ftp.rediris.es/mirror/CentOS/7.5.1804/os/x86_64/
http://ftp.cica.es/CentOS/7.5.1804/os/x86_64/
http://centos.mirror.minorisa.net/7.5.1804/os/x86_64/
http://repo.nixval.com/CentOS/7.5.1804/os/x86_64/
http://centos.uvigo.es/7.5.1804/os/x86_64/
http://ftp.uma.es/mirror/CentOS/7.5.1804/os/x86_64/
http://ftp.cixug.es/CentOS/7.5.1804/os/x86_64/
http://mirror.airenetworks.es/CentOS/7.5.1804/os/x86_64/
http://mirror.gadix.com/centos/7.5.1804/os/x86_64/

So, we can set the variable like this:

  1. Open the /etc/yum.repo.d/CentOS-Base.repo
  2. In the [base] section, define: releasever=7.
  3. Re-run yum upgrade or yum install xxx.

i have a problems with yum update httpd

my server is CentOS 5.11

i get this error :

[root@pbx5 ~]# yum install httpd
Loaded plugins: kmod
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
http://vault.centos.org/5.11/os/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@pbx5 ~]#

here my repo CentOS-Base.repo

name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/5.11/os/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://vault.centos.org/5.11/extras/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

please help me.
Thanks.

asked Nov 30, 2018 at 18:06

Stuart Lee's user avatar

Comment mirrorlist in [base]:

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/5.11/os/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

And check, if vault.centos.org is resolving properly:

$ dig +short vault.centos.org
 109.72.83.61

If it’s not resolving, try add record manually:

echo "109.72.83.61 vault.centos.org" >> /etc/hosts
yum clean all && yum makecache

answered Dec 19, 2018 at 9:45

Artem Budaev's user avatar

5

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Network Satellite or Proxy 5.4 or later

Issue

  • Yum update fails with :
Error: Cannot retrieve repository metadata (repomd.xml) for repository: XXXX. Please verify its path and try again

Resolution

  • Verify that the Satellite or Proxy server has a fully-qualified domain name (FQDN), and that the CommonName (CN) in the SSL certificate used by Apache is set to the FQDN:

    • For a self-signed Satellite certificate, the CN field should be FQDN for Issuer and Subject and these two fields should be matching,

      # grep CN /etc/httpd/conf/ssl.crt/server.crt
      Issuer: C=US, ST=North Carolina, O=Example Corp. Inc., OU=unit, CN=satellite.example.com
      Subject: C=US, ST=North Carolina, O=Example Corp. Inc., OU=unit, CN=satellite.example.com/emailAddress=admin@example.com
      
    • For a third-party SSL certificate, the CN field should be FQDN in Subject,

      Subject: C=US, ST=North Carolina, O=Example Corp. Inc., OU=unit, CN=satellite.example.com/emailAddress=admin@example.com
      
  • Also verify that the ssl.conf configuration file is pointing to the correct files:

    # grep ^SSLCert /etc/httpd/conf.d/ssl.conf
    SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
    
  • Ensure that serverURL in the client system’s /etc/sysconfig/rhn/up2date file uses the FQDN of the Satellite or Proxy server, e.g.:

    serverURL=https://satellite.example.com/XMLRPC
    
  • If the system connects to RHN via an http proxy, ensure that /etc/sysconfig/rhn/up2date is configured with the correct http_proxy information:

    httpProxy=http_proxy_fqdn or ip_address:port
    
  • If there is a duplicate file of /etc/sysconfig/rhn/up2date, remove it from /etc/sysconfig/rhn/

  • Ensure latest version of yum is installed:

# yum update yum
  • If all above settings are correct then clean the cache on client system using below command,

    # rm -rf /var/cache/yum/*
    

Root Cause

  • Inconsistent SSL configuration
  • Incorrect entries for http proxy and port number


  • Product(s)

  • Red Hat Satellite


  • Component

  • yum


  • Category

  • Troubleshoot


  • Tags

  • proxy
  • rhn
  • satellite
  • yum

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Verify that the Satellite or Proxy server has a fully-qualified domain name (FQDN), and that the CommonName ( CN ) in the SSL certificate used by Apache is set to the FQDN:

For a self-signed Satellite certificate, the CN field should be FQDN for Issuer and Subject and these two fields should be matching,

Also verify that the ssl.conf configuration file is pointing to the correct files:

Ensure that serverURL in the client system’s /etc/sysconfig/rhn/up2date file uses the FQDN of the Satellite or Proxy server, e.g.:

If the system connects to RHN via an http proxy, ensure that /etc/sysconfig/rhn/up2date is configured with the correct http_proxy information:

If there is a duplicate file of /etc/sysconfig/rhn/up2date , remove it from /etc/sysconfig/rhn/

If all above settings are correct then clean the cache on client system using below command,

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

In our case, same issue was being caused by HTTP_PROXY and HTTPS_PROXY being set in the environment variable (set by the SOE).
This caused yum to go to the organisation’s HTTP proxy instead of to the Satellite server.
Unsetting it (or using noproxy to put satellite on the exclusion list) resolved the issue.

For us, a new FQDN was configured for the RHN Satellite Server, but the SSL cert was unchanged (contained CN for old FQDN).

We keep getting this error.
How do I set a static repository?
What URL?

If you are still getting an error I would suggest opening a support case at https://access.redhat.com/support/cases/new/ . In the meantime I’ll try to get an answer over here as well. Thank you for your patience.

Previous versions
nss-softokn-3.12.9-3.el6.x86_64
nss-sysinit-3.13.6-2.el6_3.x86_64
nss-softokn-freebl-3.12.9-3.el6.x86_64
nss-3.13.6-2.el6_3.x86_64
nss-tools-3.13.6-2.el6_3.x86_64
nss-util-3.13.6-1.el6_3.x86_64
nss-pam-ldapd-0.7.5-18.1.el6_4.x86_64

Quick fix:
[me@work]$ sudo sed -i ‘s/serverURL=https:/serverURL=http:/g’ /etc/sysconfig/rhn/up2date; sudo yum update yum* nss* ; sudo sed -i ‘s/serverURL=http:/serverURL=https:/g’ /etc/sysconfig/rhn/up2date

Linux YUM – Error: Cannot retrieve repository metadata (repomd.xml) for repository

Posted by FatDBA on January 6, 2016

Some time back I’ve got an error message with YUM even when the installation and configuration went successful.
Where it fails every time i called any of the YUM commands with error message “Cannot retrieve repository metadata (repomd.xml) for repository”.

]# yum list
Loaded plugins: refresh-packagekit
Repository ol6_latest is listed more than once in the configuration
Repository ol6_ga_base is listed more than once in the configuration
ftp://obiftp/YUM_local/GDS/obi/6.1/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 502”
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base_el6_local. Please verify its path and try again

Try the following sequence of steps to fix this problem.

$ sudo su –
# cd /etc/yum.repos.d
# rm -f *
# wget http://public-yum.oracle.com/public-yum-ol6.repo — This needs Internet Connection
# yum clean all
# yum makecache

Hope That Helps
Prashant Dixit

Like this:

This entry was posted on January 6, 2016 at 10:48 PM and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Источник

CentOS

The Community ENTerprise Operating System

Yum Not Working: Error: Cannot retrieve repository metadata (repomd.xml)

Yum Not Working: Error: Cannot retrieve repository metadata (repomd.xml)

Post by helmikuu » 2012/09/07 21:42:29

Please Help. I almost tried all the possible solutions from the internet but I cannot solve this issue. I am using putty and need to install some application but yum is not working from my ends. Here is the Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again.

Here are some of the info:

]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

# This is the default, if you make this bigger yum won’t see if the metadata
# is newer on the remote and so you’ll «gain» the bandwidth of not having to
# download the new metadata and «pay» for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don’t keep old packages around. If you don’t like this checking
# interupting your command line usage, it’s much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

Источник

yum update error repomd.xml

Hi,
my system is Red Hat Enterprise Linux Server release 6.5 (Santiago)
Linux srvvorelv01.avio.net 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

yum update
Loaded plugins: refresh-packagekit, rhnplugin, security
This system is receiving updates from ULN.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again

Can you help me

Responses

ULN suggests that this is for Unreakable Linux? Are you just attempting to get Oracle components from ULN? or all updates etc. as well?

Are you able to browse to the repository URL in a browser?
Does your server have access to the Internet?

I have more details:
on the server there are more active repository.
If I go on the Redhat portal and I disable the channel base redhat rhel-x86_64-server-6 then I can install packages
but
If I go on the Redhat portal and I enable basic channel rhel-x86_64-server-6 then I get the error

yum install wireshark
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from ULN.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again

What ULN repository are you subscribing the server to?

My approach would be to remove the ULN repository and confirm that the rhel-x86_64-server-6 repository works correctly from RHN.

Then I would ensure that you only add the specific ULN repository that has the packages that you need (what do you need from ULN? asmlib?)

Ok, I have removed ULN from /etc/yum.repos.d but nothing

[root@srvvorelv01 yum.repos.d]# yum install wireshark
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from ULN.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again

What is the repo stanza for rhel-x86_64-server-6? This appears as if you are registered still with the Oracle update server.. so my guess is that you need to look there. I think that due to the line below

This system is receiving updates from ULN.

It sounds like your repomd.xml file has either not been created (or is not current).

This is a daily job (so it may have resolved itself by now 😉 but you can force it with the following:

right, I haven’t repomd.xml on my server.
I try the guide, but on my serve there isn’t satellite-sync command

I apologize — I should have mentioned that this was required on the Satellite server (not the client).

After reviewing the thread I don’t see a reference to Satellite. Are you running a Satellite Server in your environment?

Like I had mentioned, this job runs daily (should anyhow) — have you tried running the following today:

there isn’t Satellite Server.

[root@srvvorelv01 rhsm]# yum clean all
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: rhel-x86_64-server-6
Cleaning up Everything
[root@srvvorelv01 rhsm]# yum repolist
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from ULN.
repo id repo name status
rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) 0
repolist: 0
[root@srvvorelv01 rhsm]# yum list
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from ULN.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again

I guess we forgot to ask the most basic question to start: Is your host registered to RHN (or Satellite)? You already let us know that it is not registered to a Satellite.

Like PixelDrift had mentioned, it appears that you are registered to Oracle’s Repos (or have at least added the repo’s separately)

If you have a subscription with Red Hat, I recommend reviewing the following:
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/entitlements.html

Here is a doc on how to re-register your system:
https://access.redhat.com/site/solutions/8036

I am not knowledgable enough with Subscriptions/Entitlements to know exactly what to ask, but I believe the docs I provided should get you going again.

ls /etc/yum.repos.d/
repo.disabled rhel-source.repo.

I already re-registered but nothing

I suspect your server may be registered to ULN using the rhnplugin, which may explain why you don’t see any repositories in /etc/yum.repos.d.

The fact you are still receiving this message «This system is receiving updates from ULN.» means you need to try and remove the registration from ULN. Can you login to the ULN interface and remove the host manually from there?

What method did you use to register the server with ULN originally? Did you follow some Oracle provided instructions?

yes, also I think so. the server is used by a employee then I do not know which command has given.
is there a way to reset yum?

I’m having a similar problem to this but I’m on RHEL 5 and I’ve never subscribed to the Oracle repos.

yum repolist

Loading «product-id» plugin
Not loading «rhnplugin» plugin, as it is disabled
Loading «security» plugin
Loading «subscription-manager» plugin
Running «config» handler for «security» plugin
Running «config» handler for «subscription-manager» plugin
Updating Subscription Management repositories.
This system is receiving updates from Red Hat Subscription Management.
Config time: 1.481
Yum Version: 3.2.22
COMMAND: yum repolist
Installroot: /
https://cdn.redhat.com/content/dist/rhel/server/5/5/x86_64/cf-tools/1/os/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-5-server-cf-tools-1-rpms. Please verify its path and try again

Hi there. This is an older thread, so you might get better results if you start a new topic with your details for this issue.

Edit the epel.repo file and amend the 4th line from https to http. done, sorted 😉
You’re welcome

have you checked the permissions on the repomd.xml file? check the full path to this file. Check all the permissions along the way as you go. The directory holding the packages, the repodata directory and the repomd.xml .

I usually set directories to 755 , repodata 755 , files inside repodata which include repomd.xml 644.

Also check your entries in /etc/yum.repos.d. Make sure the client is configured correctly with the correct path.

I have the same problem and I’ve done all the suggestion, but still the same repomd.xml message , with the yum update:

Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-6. Please verify its path and try again

What could be the reason?

Can you can post the contents of your repository file?

We can work from there.

How can I do that, please?

Repo files are stored in
/etc/yum.repos.d/

«Error: Cannot retrieve repository metadata (repomd.xml) for repository:
rhel-x86_64-server-6. Please verify its path and try again»

That typically indicates that there is an issue with DNS, or you cannot reach the server that it is attempting to contact (i.e. port 80/443 is blocked).

Are you using RHN Classic or Subscription Manager with your host?

Please run this and provide the output

here the result

Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
repo id repo name status
redhat-rhn-satellite-5.6-server-x86_64-6 Red Hat Satellite (v5.6 for Server v6 AMD64 / Intel64) 473
rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) 14,213
rhel-x86_64-server-optional-6 RHEL Server Optional (v. 6 64-bit x86_64) 8,044
repolist: 22,730

Did you get this result after setting enabled=1 on local.repo?

No, I did it now, is it in my last post

Go to /etc/yum.repos.d

Post the contents of any files in this directory.

here the contents of epel.repo.rpmsave

[epel]
name=Extra Packages for Enterprise Linux 6 — $basearch

baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 — $basearch — Debug

baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 — $basearch — Source

baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

**contents of local.repo_

[local1]
name=local1
baseurl=http://10.1.43.37/satellite
enabled=0
gpgcheck=0

TIP: When including code/output in your reply, you should enclose the output with 3 x tilde’s

Regarding your host. Something modified your repo files. An «active» repo should end with .repo.

Judging by the fact that you have the repo for Satellite (from one of your other responses), I will assume you are building a Satellite server. If this is just a test Satellite, EPEL might be OK. Otherwise, if this, in fact, a Satellite Server and you actually hope to use this long term — my recommendation is that you may want to consider starting over. The Satellite installation is rather specific about a few particular items. One of which is the packages and package groups that are available to your system. (They recommend that you build your system only using @Base and the bare minimum packages, then when you run the Satellite installation it will ask you if you want to have the installer fix the dependencies).

The Base OS repos are not in /etc/yum.repos.d/* — but are configured elsewhere when you subscribe your system to the Red Hat Network (using classic or subscription manager). I do not know specifically which files contain the attach repos — but I will dig around to get you an answer.

My biggest question at this point: what are you trying to accomplish with this host? I want to make sure that we can offer the best advice based on what you are trying to do.

Источник

Posted by FatDBA on January 6, 2016

Some time back I’ve got an error message with YUM even when the installation and configuration went successful.
Where it fails every time i called any of the YUM commands with error message “Cannot retrieve repository metadata (repomd.xml) for repository”.

[root@Fatdba ~]# yum list
Loaded plugins: refresh-packagekit
Repository ol6_latest is listed more than once in the configuration
Repository ol6_ga_base is listed more than once in the configuration
ftp://obiftp/YUM_local/GDS/obi/6.1/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 502”
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base_el6_local. Please verify its path and try again

Solution:
Try the following sequence of steps to fix this problem.

$ sudo su –
# cd /etc/yum.repos.d
# rm -f *
# wget http://public-yum.oracle.com/public-yum-ol6.repo — This needs Internet Connection
# yum clean all
# yum makecache

Hope That Helps
Prashant Dixit

This entry was posted on January 6, 2016 at 10:48 PM and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a response, or trackback from your own site.

@Kibrom Gebrehiwot

Verify the content of repo files. I am able to run the repolist. It looks like that you have changed the repo files. In case you have not changed it then retry the operation

[root@sandbox ~]# yum repolist

Loaded plugins: fastestmirror, priorities

Loading mirror speeds from cached hostfile

* base: mirrors.unifiedlayer.com

* epel: mirror.symnds.com

* extras: mirror.beyondhosting.net

* updates: reflector.westga.edu

repo id repo name status

HDP-2.3 HDP-2.3 175

HDP-UTILS-1.1.0.20 HDP-UTILS-1.1.0.20 43

Updates-ambari-2.1.2 ambari-2.1.2 — Updates 6

base CentOS-6 — Base 6,575

epel Extra Packages for Enterprise Linux 6 — x86_64 11,992

epel-apache-maven maven from apache foundation. 2

extras CentOS-6 — Extras 50

puppetlabs-deps Puppet Labs Dependencies El 6 — x86_64 77

puppetlabs-products Puppet Labs Products El 6 — x86_64 544

sandbox Sandbox repository (tutorials) 2

updates CentOS-6 — Updates 1,063

repolist: 20,529

[root@sandbox ~]#

Please Help. I almost tried all the possible solutions from the internet but I cannot solve this issue. I am using putty and need to install some application but yum is not working from my ends. Here is the Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again.

Here are some of the info:

[root@hippo ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release

# This is the default, if you make this bigger yum won’t see if the metadata
# is newer on the remote and so you’ll «gain» the bandwidth of not having to
# download the new metadata and «pay» for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don’t keep old packages around. If you don’t like this checking
# interupting your command line usage, it’s much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

# in /etc/yum.repos.d
[root@hippo ~]# ^C
[root@hippo ~]# ls -1 /etc/yum.repos.d/
CentOS-Base.repo
CentOS-Debuginfo.repo
CentOS-Media.repo
CentOS-Vault.repo
repomd.xml
RPM-GPG-KEY-CentOS-Security-6
[

[root@hippo ~]# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever — Base
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
baseurl=http://mirror.centos.org/centos/6.3/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever — Updates
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates
baseurl=http://mirror.centos.org/centos/6.3/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever — Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirror.centos.org/centos/6.3/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever — Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirror.centos.org/centos/6.3/os/x86_64/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib — packages by Centos Users
[contrib]
name=CentOS-$releasever — Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirror.centos.org/centos/6.3/os/x86_64/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
[root@hippo ~]#

pls help. :-?[code][root@hippo ~]# rpm -q yum —> yum-3.2.29-30.el6.centos.noarch[/code]

Hi All,

I Installed Oracle Linux on my desktop.

System Details are here bellow.

[root@VSS-DB-SERVER-pc ~]# cat /etc/issue

Oracle Linux Server release 6.1

Kernel r on an m

[root@VSS-DB-SERVER-pc ~]# uname -r

2.6.39-1.el6.x86_64

I need to install the bellow packages

binutils-2.15.92.0.2-13.EL4

compat-db-4.1.25-9

compat-libstdc++-296-2.96-132.7.2

control-center-2.8.0-12

gcc-3.4.3-22.1.EL4

gcc-c++-3.4.3-22.1.EL44

glibc-2.3.4-2.9

glibc-common-2.3.4-2.9

gnome-libs-1.4.1.2.90-44.1

libstdc++-3.4.3-22.1

libstdc++-devel-3.4.3-22.1

make-3.80-5

pdksh-5.2.14-30

sysstat-5.0.5-1

xscreensaver-4.18-5.rhel4.2

setarch-1.6-1

But when I run the command bellow i have error.

[root@VSS-DB-SERVER-pc ~]# yum list

Loaded plugins: refresh-packagekit

Repository ol6_latest is listed more than once in the configuration

Repository ol6_ga_base is listed more than once in the configuration

ftp://obiftp/YUM_local/GDS/obi/6.1/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 — «The requested URL returned error: 502»

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base_el6_local. Please verify its path and try again

I cant even run yum install comand.

I am trying to install oracle DB 11GR2.

The public-yum-ol6.repo file is attached.

Thanks,

Vishwamber Shetty

Понравилась статья? Поделить с друзьями:
  • Error cannot read property match of undefined
  • Error cannot read boot image header
  • Error cannot pull with rebase you have unstaged changes error please commit or stash them
  • Error cannot open winrar
  • Error cannot open trainz asset database