Member-only story
Linux By Karthick Dkk
🐧 Not Upgraded yet ? Ubuntu 20.04 to 22.04 (Without Breaking Production!)
Are you still using Ubuntu 20? Here is a Ubuntu upgrade guide

Hey Mate! Welcome to the upgrade blog post.
If you’re still running Ubuntu 20.04 (Focal Fossa), it’s time to move on! Ubuntu 22.04 (Jammy Jellyfish) brings better performance, security patches, and long-term support (LTS).
Why Upgrade?
As life of Ubuntu 20 (Not Ubuntu pro) will end this March 2025. After onwards we will not receive security updates from the official Ubuntu repository. Who wants to take security risks at production. ? Let’s upgrade

How to Upgrade?
As someone who manages production servers, I know upgrades can go horribly wrong if not done right. So, I created this guide with two methods:
- For Local Users — Those upgrading on physical (VM) or on-premises servers.
- For Cloud Users — Those using AWS, GCP, Azure, or any cloud provider.
We’ll also cover two approaches:
🟢 PLAN A (Direct Upgrade) — Fast but risky if dependencies break.
🟢 PLAN B (Fresh Install) — The safest method for production servers.
We will do writing the the script for health check, backup, and Upgrade with Post check.
Let’s get started! 🚀
🏠 Method 1: Upgrade for Local or VM Machines
🛠️ PLAN A: Direct Upgrade (Take own risks)
✅ Step 1: Pre-Upgrade Health Check
Before upgrading, check if you’re already on Ubuntu 22.04:
# Check ubuntu version
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04 <-- Version
Codename: focal