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
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
Thanks