docker-nexus icon indicating copy to clipboard operation
docker-nexus copied to clipboard

Issue with repomd.xml

Open wigilant opened this issue 1 year ago • 1 comments

I want to configure a yum proxy into Nexus for Almalinux. After I configured the ".repo" file into ".../etc/yum.repos.d/", I have tried to do a "sudo yum update" into a terminal but i get :

Errors during downloading metadata for repository 'nexusrepo':

  • Status code: 404 for http://<nexus_ip>/repository/yum-proxy/repodata/repomd.xml (IP: ...) Error: Failed to download metadata for repository "nexusrepo": Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Can you help me please ?

Thanks!

wigilant avatar Jun 08 '23 15:06 wigilant

Hi @wigilant ,

I've encountered a similar issue some days ago. Late answer but for what it's worth:

  • the error message says repodata/repomd.xml can't be found
  • in my case, I configured my yum.repo.d list file with <base_url>/<subpath>/noarch
  • when creating the repository, I had to set the "repodata depth" to "2", so that the repodata folder is created under "noarch". By default, it seems to be "1", meaning the repodata folder will be created under "subpath" folder, which is not what I wanted.
  • then I rebuilt the index, and life was beautiful

Cheers,

needarun avatar Nov 16 '23 17:11 needarun