Ubuntu uses a phased updates (or phased release) mechanism to gradually roll out package updates to its users. This approach helps minimize the spread of critical bugs and ensures greater stability across systems. Here's why upgrades might be deferred due to phasing:
🔄 What is Phased Updating?
Phased updating means that not all users receive an update at once, even if they run apt upgrade or unattended-upgrades. Instead, Ubuntu (or more specifically, its package mirrors and update infrastructure) rolls out certain updates gradually.
This approach is mainly implemented via the APT (Advanced Package Tool) system used in Ubuntu and Debian-based distributions.
✅ Why Does Ubuntu Use Phased Updates?
-
Catch Bugs Early:
- If a new update introduces bugs or regressions, it's safer if it affects only a small portion of users first.
- If issues are detected, developers can pause or roll back the spread of the update.
-
Improve System Stability:
- By monitoring how an update performs among early recipients, Ubuntu ensures that most end users get only stable, tested packages.
-
Reduce Support Load:
- Reducing the blast radius of potentially broken packages means fewer users need support or encounter crashes.
🧠 How Are Users Selected for Updates?
Ubuntu assigns each machine a randomized client ID in APT. This identifier determines whether your system is in the cohort selected to receive the update.
If you're not selected yet, the update is deferred. It's there in repositories, but your system won't install it until your "turn" comes up in the phased rollout.
🔍 How to Check if an Update Is Deferred
When running apt upgrade, you'll see messages like:
The following packages have been kept back due to phasing:
somepackage (<version>)
Or with apt list --upgradable, a newer version might be shown, but not yet offered.
⚙️ How to Disable or Bypass Phased Updates
If you're OK with a bit more risk and want the newest updates immediately:
Option 1: Disable Phased Updates Globally
Edit or create the APT config override:
sudo nano /etc/apt/apt.conf.d/99disable-phased-updates
Add this line:
APT::Get::Always-Include-Phased-Updates "true";
Option 2: Install Specific Version Manually
Use:
sudo apt install packagename=version
You can find available versions with:
apt list -a packagename
📌 Summary
Ubuntu defers upgrades due to phased updates to ensure reliability and reduce the chance of widespread issues. This is a normal and safe practice for most users. Advanced users can bypass it if needed.
Let me know if you want a quick script to auto-disable phased updates or automatically install the latest package versions!