DEV Community

Manoj Kumar
Manoj Kumar

Posted on

How to upgrade from Ubuntu 22.04 to 23.04 using terminal [2024]

Step 01:

Get all the apt updates

sudo apt-get update and
sudo apt-get upgrade

to make sure all the packages are in the latest version.

Step 02:

Update the system using the below command.

sudo do-release-upgrade

This might warn you that if you were to continue livepatch will be turned off. Type y and continue.

If you encounter an error saying...

Image description

Go to /etc/apt/sources.list.d and locate the winehq-<release>.sources and delete it. This will do the trick. If it throws an access denied error, try it with root privilages.

sudo rm -rf winehq-<release>.sources

Make sure you replace the with whatever the version that shows in your directory.

Example: winehq-jammy.sources

Then redo the Entire step 02 from beginning.

Moving on....

If you get a "third party entries in sources.list disabled" warning, type y and continue

Image description

Then the update starts to download and

  • Remove unnecessary packages
  • Install new packages needed for the new version
  • Upgrade existing packages

This will be a lengthy process depending upon the internet connection speed. So sit back and relax.

Image description

Once everything is downloaded (about 2.7GB) it will start upgrading them.

Image description

Top comments (0)