📖 ~1 min read
Table of contents
Symptom & Impact
Repository hostnames fail to resolve and package updates cannot be downloaded.
Environment & Reproduction
Typically appears after network, DHCP, or DNS policy changes.
sudo apt update
Root Cause Analysis
systemd-resolved or upstream DNS servers are misconfigured or unavailable.
Quick Triage
Confirm resolver status and hostname lookup behavior.
resolvectl status
getent hosts archive.ubuntu.com
Step-by-Step Diagnosis
Inspect network route, resolver logs, and interface DNS assignment.
ip route
sudo systemctl status systemd-resolved
sudo journalctl -u systemd-resolved -n 80

Solution – Primary Fix
Set valid DNS servers in netplan and reapply networking configuration.
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
Apply temporary resolver override for urgent patch windows.
sudo resolvectl dns eth0 1.1.1.1 8.8.8.8
Verification & Acceptance Criteria
Name resolution works and apt index updates complete successfully.
resolvectl query archive.ubuntu.com
sudo apt update
Rollback Plan
Restore previous netplan configuration from backup and reapply.
sudo cp /etc/netplan/01-netcfg.yaml.bak /etc/netplan/01-netcfg.yaml
sudo netplan apply
Prevention & Hardening
Use redundant DNS servers and monitor resolver health in baseline checks.
Related Errors & Cross-Refs
Often appears with proxy misconfiguration and IPv6 routing issues.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu systemd-resolved and netplan operational 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.