04-07-2026, 11:31 AM
(This post was last modified: 04-07-2026, 11:32 AM by aniket.pitre.)
Purpose: Upgrade Ubuntu systems from 22.04 LTS to 24.04 LTS with full step-by-step procedure (including what appears on screen during upgrade)
Document Type: Operational Runbook
? Step 1 — Check Current Version
? Confirm:
? Step 2 — Update Current System
? During this step:
? Step 3 — Install update-manager-core
? If prompted:
Edit Upgrade Configuration
Find:
Change to:
? Save:
⚙️ Step 4 — Prepare System (dist-upgrade)
? During this step:
? Step 5 — Reboot System
? Step 6 — Run Release Upgrade
? You will now see multiple interactive prompts:
1. Checking for new release
You may see:
? Step 7 — Final Reboot
? System reboots automatically or asks:
✅ Step 8 — Verify Upgrade
OR
? Confirm:
? Optional Cleanup
⚠️ Important Notes
? Troubleshooting
If upgrade not detected:
If upgrade fails midway:
Document Type: Operational Runbook
? Step 1 — Check Current Version
Code:
cat /etc/os-release- VERSION="22.04 LTS"
- CODENAME=jammy
? Step 2 — Update Current System
Code:
sudo apt update && sudo apt upgrade- You may see package list fetching
- If prompted:
- Press Y to continue
- Press Y to continue
? Step 3 — Install update-manager-core
Code:
sudo apt install update-manager-core- Press Y → continue installation
Edit Upgrade Configuration
Code:
sudo nano /etc/update-manager/release-upgradesCode:
Prompt=normalCode:
Prompt=lts- CTRL + X
- Press Y
- Press ENTER
⚙️ Step 4 — Prepare System (dist-upgrade)
Code:
sudo apt dist-upgrade- System may install/remove dependencies
- If prompted:
- Press Y to continue
- Press Y to continue
? Step 5 — Reboot System
Code:
sudo reboot? Step 6 — Run Release Upgrade
Code:
sudo do-release-upgrade1. Checking for new release
- System checks availability of Ubuntu 24.04
- Shows:
- Packages to install
- Packages to upgrade
- Packages to remove
- Packages to install
- Prompt:
- "Do you want to start the upgrade?"
- Press Y
- "Do you want to start the upgrade?"
- Shows download progress
- No input required unless interrupted
You may see:
- "A new version of config file is available"
- Press Y → install new version
- Press N → keep existing version
- Use N if unsure (safer)
- "Restart services during package upgrades without asking?"
- Select Yes → recommended
- "Remove obsolete packages?"
- Press Y → clean system
- Keep current selection unless you know otherwise
- "System upgrade is complete. Restart required"
- Press Y
? Step 7 — Final Reboot
? System reboots automatically or asks:
- Press Y to reboot
✅ Step 8 — Verify Upgrade
Code:
cat /etc/os-releaseCode:
lsb_release -a- VERSION="24.04.4 LTS"
- CODENAME=noble
? Optional Cleanup
Code:
sudo apt autoremove -y⚠️ Important Notes
- Always take backup before upgrade
- Ensure stable internet connection
- Do not interrupt upgrade
- Recommended downtime window
- Ensure at least 5–10 GB free disk space
? Troubleshooting
If upgrade not detected:
Code:
sudo do-release-upgrade -dCode:
sudo dpkg --configure -a
sudo apt -f install
-By Aniket Pitre

