Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with repomd.xml #548

Open
wigilant opened this issue Jun 8, 2023 · 1 comment
Open

Issue with repomd.xml #548

wigilant opened this issue Jun 8, 2023 · 1 comment

Comments

@wigilant
Copy link

wigilant commented Jun 8, 2023

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!

@needarun
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants