yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Issues related to applications and software problems
Post Reply
david68CU
Posts: 4
Joined: 2019/01/31 15:33:53

yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Post by david68CU » 2019/01/31 16:01:41

Hello everyone :

I have this issue with a Centos box:
$sudo yum install httpd
yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Below are more details of the error and my information about my system

Code: Select all

 $sudo yum install httpd
Loaded plugins: fastestmirror, presto, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                                                         |  18 kB     00:00
 * base: mirror.cc.columbia.edu
 * epel: fedora.mirrors.pair.com
 * extras: mirror.fileplanet.com
 * updates: mirror.fileplanet.com
Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64. Please verify its path and try again
# Some information about my system
I can curl and ping any site so connection issues are discarded

Code: Select all

$ uname -r
2.6.32-754.10.1.el6.x86_64


$ cat /etc/redhat-release
CentOS release 6.10 (Final)


$ cd /etc/yum.
yum.conf     yum.repos.d/

ls -al /etc/yum.repos.d/
total 60
drwxr-xr-x.  3 root root 4096 Jan 31 09:02 .
drwxr-xr-x. 75 root root 4096 Jan 31 09:16 ..
drwxr-xr-x.  2 root root 4096 Jan 24 18:25 backup
-rw-r--r--.  1 root root 1991 Jun 26  2018 CentOS-Base.repo
-rw-r--r--.  1 root root  647 Jun 26  2018 CentOS-Debuginfo.repo
-rw-r--r--.  1 root root  289 Jun 26  2018 CentOS-fasttrack.repo
-rw-r--r--.  1 root root  630 Jun 26  2018 CentOS-Media.repo
-rw-r--r--.  1 root root 8854 Jun 26  2018 CentOS-Vault.repo
-rw-r--r--.  1 root root  256 Jan 31 09:14 epel.repo
-rw-r--r--.  1 root root  129 Jan 24 19:15 jams-repo.repo
-rw-r--r--.  1 root root  277 Jan 24 19:14 saltstack-repo.repo
-rw-r--r--.  1 root root  195 Jan 24 19:15 spacewalk-repo.repo
-rw-r--r--.  1 root root  144 Jan 24 19:15 vmware-repo.repo


]$ 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=19&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
Could someone here please help ?
Thanks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Post by TrevorH » 2019/01/31 16:56:35

That's an odd repo name. What is the output from grep centos6.6-base-x86-64 /etc/yum.repos.d/*.repo ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

david68CU
Posts: 4
Joined: 2019/01/31 15:33:53

Re: yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Post by david68CU » 2019/03/28 19:51:25

The output from

grep centos6.6-base-x86-64 /etc/yum.repos.d/*.repo

Is empty

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Post by avij » 2019/03/28 20:16:06

david68CU wrote:
2019/01/31 16:01:41
This system is receiving updates from RHN Classic or Red Hat Satellite.
This may be related to this issue.

david68CU
Posts: 4
Joined: 2019/01/31 15:33:53

Re: yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Post by david68CU » 2019/03/29 02:38:31

Ok so how do I solve this issue ?
What needs to be changed ?

david68CU
Posts: 4
Joined: 2019/01/31 15:33:53

Re: yum install Error: Cannot retrieve repository metadata (repomd.xml) for repository: centos6.6-base-x86-64

Post by david68CU » 2019/04/01 15:01:37

The solution was to remove a repo that was causing this issue

sudo rm -r /etc/yum.repos.d/spacewalk-repo.repo.repo solved the issues

Post Reply