I’m having issues with the fedora-cisco-openh264 repository in particular and have read through everything I could find related to that repo, mirrors, apt-cacher-ng, 403 errors, curl 18 errors, etc. and this thread. I thought I’d try to summarize everything to try to centralize troubleshooting steps.
- Make sure the Fedora TemplateVM can update outside of cacher/apt-cacher-ng before complicating things.
- From Dom0, inspect
- The Fedora TemplateVM’s tags via
qvm-tags <TemplateVM name>to ensure it doesn’t have any tags that might interfere with Updates.Proxy routing - Dom0’s
/etc/qubes/policy.d/50-config-updates.policyand/etc/qubes/policy.d/30-user.policy(if it exists) to ensure the Fedora TemplateVM is set to update through a known-working Update qube and not cacher (yet).
- The Fedora TemplateVM’s tags via
- From the Fedora TemplateVM,
- Make sure the repos start with
https://and not the cacher proxy prefix ofhttp://HTTPS///viased -i 's^http://HTTPS///^https://^' /etc/yum.repos.d/* - Attempt to update via
dnf updateto verify functionality. If it doesn’t, troubleshoot and resolve those issues before proceeding.
- Make sure the repos start with
- From Dom0, inspect
- Make sure the template-cacher TemplateVM is healthy
- Complete the steps above for the template-cacher TemplateVM and monitor for and resolve any issues during
apt updatelike missing or damaged packages. - Shutdown template-cacher; also shutdown cacher, if it was running, to ensure any changes propagate down to it.
- Complete the steps above for the template-cacher TemplateVM and monitor for and resolve any issues during
- Configure the Fedora TemplateVM’s repos for cacher’s proxy prefix via
sed -i 's|https://|http://HTTPS///|' /etc/yum.repos.d/* - Prepare cacher for Fedora updates and troubleshooting
- Clear the logs via
rm -r /var/log/apt-cacher-ng/* - Clear the cache via
rm -r /var/cache/apt-cacher-ng/* - Modify the following properties in
/etc/apt-cacher-ng/acng.confVfilePatternEx: .*fedora.*updateinfo.*xml.zck$|^/\?release=[0-9]+&arch=.*|.*/RPM-GPG-KEY.*|.*\?repo=fedora|.*pkg.tar.zst.sigDontCache: .*fedora.*updates.*updateinfo.xml.zck .*fedora.*repomd.xml
- Restart the apt-cacher-ng service via
systemctl restart apt-cacher-ng
- Clear the logs via
- Attempt to update the Fedora TemplateVM via
dnf updateto verify functionality. If it doesn’t, troubleshoot and resolve those issues.
I’m not very clear on:
- When to modify
/etc/apt-cacher-ng/fedora_mirrors_extraand the expected syntax - The appropriate syntax for
metalinkorbaseurlin the/etc/yum.repos.d/repo files.
Hope I got this right and helps move us all toward speedy resolutions!