📖 ~1 min read
Table of contents
Symptom & Impact
Package metadata cannot be downloaded because repository hostnames do not resolve.
Environment & Reproduction
Typically seen after network changes or resolver misconfiguration.
sudo apt update
Root Cause Analysis
systemd-resolved or upstream DNS servers are unavailable or misconfigured.
Quick Triage
Test name resolution and current DNS server assignments.
resolvectl status
getent hosts archive.ubuntu.com
Step-by-Step Diagnosis
Check resolver service logs and network routing state.
sudo systemctl status systemd-resolved
ip route
sudo journalctl -u systemd-resolved -n 80

Solution – Primary Fix
Set valid DNS servers in netplan or NetworkManager and reapply network settings.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo netplan apply
resolvectl flush-caches
sudo apt update

Solution – Alternative Approaches
Use temporary resolver override for maintenance tasks.
sudo resolvectl dns 1.1.1.1 8.8.8.8
Verification & Acceptance Criteria
Repository hostnames resolve and apt update succeeds.
getent hosts security.ubuntu.com
sudo apt update
Rollback Plan
Revert netplan changes to previous known-good configuration and reapply.
sudo netplan apply
Prevention & Hardening
Monitor DNS health and keep redundant resolvers configured for critical hosts.
Related Errors & Cross-Refs
Frequently linked with proxy failures, route loss, and intermittent packet loss.
Related tutorial: View the step-by-step tutorial for Ubuntu 26.04 LTS.
View all Ubuntu 26.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu netplan and systemd-resolved operations guide.
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.