Affected versions: CentOS Stream 10

📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

dnf operations report metadata expired or 503 from the proxy, blocking package installs.

Environment & Reproduction

Seen on hosts behind authenticating proxies that cache or strip dnf headers incorrectly.

Root Cause Analysis

Proxy returns stale or compressed metadata, so repository validation fails on hash checks.

Quick Triage

Test direct curl to the repository baseurl through the proxy and inspect /var/log/dnf.log.

Step-by-Step Diagnosis

Run: curl -v -x http://proxy:3128 https://mirror.example.com/path/repodata/repomd.xml.

Illustrative mockup for centos-stream-10 — cp238_diag
dnf check-update through proxy errors — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Set proxy=http://user:pass@proxy:3128 in /etc/dnf/dnf.conf and run sudo dnf clean all && sudo dnf makecache.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for centos-stream-10 — cp238_fix
Proxy config and metadata refresh — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Configure a local Red Hat Satellite or Pulp mirror to bypass the upstream proxy for repository content.

Verification & Acceptance Criteria

dnf repolist reports correct repos and sudo dnf check-update succeeds without proxy errors.

Rollback Plan

Remove proxy lines from dnf.conf and restore previous configuration from backup.

Prevention & Hardening

Monitor metadata_expire and schedule predictable refresh windows for proxied environments.

Related to gpgcheck failures, TLS interception, and dnf-automatic scheduling problems.

Related tutorial: View the step-by-step tutorial for centos-stream-10.

View all centos-stream-10 tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

dnf.conf(5) and Red Hat Satellite proxy documentation.

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.