docker-nexus
docker-nexus copied to clipboard
Issue with repomd.xml
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!
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,