Upgrading Ubuntu 22.04 to Ubuntu 23.10 using do-release-upgrade
In this article, we will walk you through the process of upgrading Ubuntu 22.04 to Ubuntu 23.10 using the command line tool do-release-upgrade.
Before you begin
Before you begin, make sure that your system is up to date by running the following command:
sudo apt update && sudo apt upgradeRunning the do-release-upgrade command
To start the upgrade process, open a terminal and run the following command:
sudo do-release-upgradeYou will be prompted to continue with the upgrade. Type y and press Enter.
Changing the Prompt behavior
During the upgrade process, you may be prompted to make decisions about how to handle certain situations. By default, the do-release-upgrade command will use the lts prompt behavior, which means that it will only offer to upgrade to the next LTS (Long Term Support) release. However, in this case, we want to upgrade to Ubuntu 23.10, which is not an LTS release.
To change the prompt behavior to normal, press Ctrl + Alt + F2 to open a new terminal window. Log in and run the following command:
sudo sed -i 's/Prompt=lts/Prompt=normal/g' /etc/update-manager/release-upgradesThen, switch back to the terminal window where the do-release-upgrade command is running and press Ctrl + C to cancel the current operation. Run the do-release-upgrade command again to continue the upgrade process.
Handling prompts during the upgrade
As the upgrade progresses, you may be prompted to make decisions about how to handle certain situations. For example, you may be prompted to remove unused packages or to restart services. In most cases, it is safe to accept the default options.
Completing the upgrade
Once the upgrade is complete, you will be prompted to restart your system. Type y and press Enter to restart.
- Make sure your system is up to date
- Run the
do-release-upgradecommand - Change the prompt behavior to
normal - Handle prompts during the upgrade
- Restart your system to complete the upgrade