How to upgrade to Ubuntu 18.04 LTS (Bionic Beaver)

Ubuntu 18.04 LTS is about to expire, and the official release date is April 26. Since the server is very slow around the release date, I hope to upgrade in advance. If you can’t wait to upgrade from Ubuntu 16.04 or 17.10 to Ubuntu 18.04 LTS, follow the steps below.
You need to note that although Ubuntu 18.04 is not yet considered stable, there may still be problems! Update: These instructions also apply to upgrading from Ubuntu 18.04 LTS to Ubuntu 18.10 (Cosmic Cuttlefish).

Upgrade to Ubuntu 18.04 LTS (Desktop) in the standard way

To upgrade from Ubuntu 16.04 LTS or 17.10 to Ubuntu 18.04 LTS (Bionic Beaver) in the standard (recommended) way, follow the steps below.
1. Make sure all packages are up to date. To do this, simply run Software Updater and install all available updates.
2. Open “Software and Update” from the menu (you can also start from the Ubuntu Software menu), and then on the “Update” tab, make sure the “Notify me of new Ubuntu version” option is set to “For any new version “:

Otherwise, you may receive the error “Only the latest supported version can be upgraded to the development version.”
3. Press Alt + F2 and type the following command:

update-manager -cd

The following dialog should be displayed:
Ubuntu upgraded to 18.04

Click “Upgrade” and follow the instructions. After finishing, you should have the latest Ubuntu 18.04 LTS (Bionic Beaver).
If you are not prompted to upgrade to the latest Ubuntu 18.04 LTS (Bionic Beaver), use the following command to force a new release check:

/usr/lib/ubuntu-release-upgrader/check-new-release-gtk

Upgrade to Ubuntu 18.04 LTS from the command line (desktop or server)

Although the standard method for upgrading to a newer Ubuntu version is the method described above, I have always liked to use the command line-even on my desktop-because you can easily see any issues that may arise, so it is easier to fix (also Easier to search for fixes).
However, this is not for everyone, so if you have some experience with the command line, don’t use it otherwise. If you don’t know how to fix it, or at least find and apply it online, it doesn’t matter if you look at the damaged content. To upgrade to Ubuntu 18.04 LTS (desktop or server) from the command line, type the following command:

sudo do-release-upgrade -d

When asked if you want to continue, type “y” and press Enter:
Upgrade Ubuntu 18.04 command line

If you want to cancel the upgrade process, please do not press Ctrl + C after running the above command, because your repository will point to Ubuntu 18.04! Instead, press “N” when prompted to abort.

Source

Sidebar