Information
Step 1: Updating and Upgrading the System
Before upgrading to Ubuntu 18.04, make sure to update the available packages, upgrade the existing system, and clean the disk from unnecessary packages.
1. Update the software packages repository list:
sudo apt-get update
2. Then, upgrade already installed packages and let the system handle package dependencies with:
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
3. Finally, free up disk space by removing all unnecessary packages:
sudo apt-get autoremove
Press y to confirm you want to remove the packages.
Step 2: Setting Up Update Manager
Ubuntu allows you to easily upgrade to a newer LTS version using the Update Manager. If you do not have this package installed on the system, follow the steps below.
1. Run the command for installing Update Manager:
sudo apt-get install update-manager-core
2. Press y and Enter to confirm the installation.
sudo nano /etc/update-manager/release-upgrades
Step 3: Upgrading to Ubuntu 18.04
1. Check whether there are new release upgrades available by running the following command:
sudo do-release-upgrade
2. The output informs you Ubuntu 18.04 is available for download. It also includes information about the upgrade, such as the size and time it takes to complete. Press y to continue.
3. Next, confirm you want to remove obsolete packages by pressing y.
4. Press y to complete the upgrade and restart the system.
5. Once the system restarts, Ubuntu 18.04 launches. You will see a welcome screen with a list of new features.
6. Verify your Ubuntu version by running the following command in the terminal window:
lsb_release -a