Using dvd for repo, failed to download metadata parse error
I am running RHEL8 in aVM and using a DVD as the repo. When I do dnf repolist it lists the BaseOS and AppStream repositories on the DVD. If I run a script that tries to access the repo i get the error curl (37) ‘Failed to download metadata for repo …repomd.xml , parser error, file empty.
I have triple checked the repo settings, they seem correct.
Any ideas?
Responses
lsblk
mount on the flymount --verbose /dev/sr0 /mnt/
copy the templated from the ISO to the diskcp --verbose /mnt/media.repo /etc/yum.repos.d/
permit the edit of the filechmod --verbose 600 /etc/yum.repos.d/media.repo
add this info to the file[BaseOS]
name=BaseOS
mediaid=None
metadata_expire=-1
gpgcheck=0
cost=500
baseurl=file:/mnt/ISO/BaseOS
[AppStream]
name=AppStream
mediaid=None
metadata_expire=-1
gpgcheck=0
cost=500
baseurl=file:/mnt/ISO/AppStream
I use another directory, so
mkdir --verbose /mnt/ISO
To make this permanent, editvim /etc/fstab
add/dev/sr0 /mnt/ISO iso9660 ro,user,auto 0 0
runmount --verbose --all
If there are not complains , you should be goodSaludos
Alan,
We see that you attached the ISO through Xencenter.
- Yes or no, did you or did you not mount the DVD to /mnt/ISO ?
- When you do a repo file, please examine/compare and adjust your repo file with this Red Hat Solution at https://access.redhat.com/solutions/3776721
- Please go through that entire solution's recommendations.
- Make sure you do not have any conflicting
*.repo
files in the/etc/yum.repos.d/
directory
Let us know how it goes.
Regards,
RJ
Hi,
lsblk
and / or
findmnt --types iso9660
Should show if sr0 is mounted on the path.
Please share the output
Saludos