Welcome to our today’s guide. That is about upgrading Ubuntu 22.04 to Ubuntu 24.04. A newer version of Ubuntu 24.04 has been released and it is always recommended to use the latest OS versions so that newer software and packages can be installed and run without any compatibility issues. Ubuntu 24.04 LTS has been released on 25 April 2024 and has been codenamed noble numbat.
Lets start!
Step 1. Check for upgradable packages
Let’s start with checking which packages need to be upgraded. Run the following on your terminal to find out.
sudo apt list --upgradable
Step 2. Update and upgrade the package repository
The next step is to update and upgrade the package repository for new updates and releases.
sudo apt update && sudo apt upgrade
Step 3. Reboot system
It is recommended to reboot your system so that the changes can take effect. Run the command.
reboot
Step 4. Check current Ubuntu version (Optional)
As you can see from the screenshot, we are using Ubuntu 22.04 LTS.
lsb_release -a
Step 5. Install update manager core
sudo apt install update-manager-core command will install update manager core if it is not already installed on your system. The update manager core is responsible for the upgrade. Run the command on the terminal.
sudo apt install update-manager-core
Step 6. Start the upgrade
After all prerequisite steps have been done, you can start the upgrade.
sudo do-release-upgrade
This may take several minutes to complete. Sit back, relax, and have a cup of coffee.
Step 6. Troubleshooting
During upgrade, you may face the following error and you cannot update the system to Ubuntu 24.04.
Error
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release set Prompt=normal in
/etc/update-manager/release-upgrades.
Solution
If this happens, you first need to upgrade to Ubuntu 23.10 and then to Ubuntu 24.04.
open the file release-upgrades file with any editor. Replace Prompt=normal instead of Prompt=lts.
sudo nano /etc/update-manager/release-upgrades
Save and close the file.
Conclusion
Thank you for visiting Linux World and reading the article. Let us know your upgrade experience through comments.
Bye till then next post.