I'm having some issues with yum. When I run "yum repolist" I get this:

Latest response

[root@ ~]# yum list all
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
file:///mnt/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/Server/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repo. Please verify its path and try again

This path is not der in this server .

/var/log/messages

Nov 3 11:38:39 : error getting update info: Cannot retrieve repository metadata (repomd.xml) for repository: repo. Please verify its path and try again

every 1hour we are getting this error .

[root@V yum]# yum repolist all
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
file:///mnt/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/Server/repodata/repomd.xml'
Trying other mirror.
repo id repo name status
repo repo enabled: 0
repo1 repo1 enabled: 0
repo2 repo enabled: 0
rhel-debuginfo Red Hat Enterprise Linux 5Server - x86_64 - Debug disabled
rhel-debuginfo-beta Red Hat Enterprise Linux 5Server Beta - x86_64 - Debug disabled
rhel-source Red Hat Enterprise Linux 5Server - Source disabled
repolist: 0

Responses

It seems you have a custom repository configuration file in /etc/yum.repos.d/ which contains baseurl=file:///mnt/Server, but /mnt/Server doesn't exist. Do you know anything about this repo? If it is legitimate, you need to make sure /mnt/Server is available and mounted (is it defined as "nouto" in /etc/fstab?); otherwise, get rid of the repo by removing its configuration file or setting enabled=0.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.