π ~1 min read
Table of contents
Symptom & Impact
dnf update fails with cannot download repomd.xml, blocking security updates.
Environment & Reproduction
Host uses outbound proxy; running dnf makecache reproduces timeout and 407 errors.
Root Cause Analysis
Proxy variables are missing or repository baseurl is unreachable from the restricted network.
Quick Triage
Run dnf -v makecache and curl -I against repository URLs using proxy environment variables.
Step-by-Step Diagnosis
Inspect /etc/dnf/dnf.conf, repo files, and system proxy settings; test DNS and TLS paths.

Solution – Primary Fix
Set proxy in dnf.conf, validate certificates, then run dnf clean all && dnf makecache.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Use internal mirror or dnf reposync cache mirror reachable without direct internet.
Verification & Acceptance Criteria
dnf makecache and dnf update complete without download failures.
Rollback Plan
Revert dnf.conf proxy entries and restore previous repo files from backup.
Prevention & Hardening
Standardize proxy configuration via automation and monitor repo availability.
Related Errors & Cross-Refs
Cannot prepare internal mirrorlist, Curl error 28, HTTP 407 Proxy Authentication Required.
Related tutorial: View the step-by-step tutorial for oracle-linux-10.
View all oracle-linux-10 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Oracle Linux documentation for dnf, repository management, and network proxy settings.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.