Query apt -get update (and homelab proxmox ve no-subscription repository 401s) spike when mirrors break. Compare with Ubuntu apt upgrade guide and Proxmox no-sub repo fix.
update vs upgrade
update refreshes index; upgrade installs newer packages.
bashworkflow
sudo apt update
sudo apt upgrade
# bigger jumps:
sudo apt full-upgrade

Common update errors
NO_PUBKEY, 404 mirror, or enterprise repo 401 — read the first error line, do not ignore partial failures.
bashfix key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys MISSING_KEY

Dry run mindset
apt list --upgradable before maintenance windows.
bashlist
apt list --upgradable 2>/dev/null | head

Automation
Combine with unattended-upgrades only after snapshots/backups on production.
WarningOn Proxmox hosts, reconcile enterprise vs no-sub repos before apt update.

Quick Reference
- Refresh index:
sudo apt update - Apply:
sudo apt upgrade - Broken repo → fix sources before upgrade
Related tutorials
Diagrams are original illustrations by Gnome IT Solutions. Tutorial text © Gnome IT Solutions.