
In this article, we will guide you through the process of upgrading your Ubuntu 18.10 system to Ubuntu 19.10 using the command line. This process is also known as a “distribution upgrade”. Please note that this is an unsupported upgrade path, as Ubuntu 18.10 has reached its end of life and is no longer receiving official updates or security patches.
To upgrade from Ubuntu 18.10 to 19.10 using the command line, you need to first update your system packages, edit the sources list, install the upgrade tool, configure it, and then perform the upgrade using the "do-release-upgrade" command. However, please note that this is an unsupported upgrade path as Ubuntu 18.10 has reached its end of life. It’s recommended to perform a clean installation of Ubuntu 19.10 or wait for the release of Ubuntu 20.04 LTS for a supported upgrade path.
Preparing for the Upgrade
Before you begin, it’s always a good idea to back up any important data. The upgrade process is usually smooth, but there’s always a small risk of data loss.
First, open a terminal. You can do this by pressing Ctrl+Alt+T
or by searching for ‘terminal’ in the application menu.
Update your current system packages to their latest versions with the following commands:
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
The sudo
command gives you administrative privileges (required for system updates), apt update
updates your package lists, apt upgrade
upgrades all upgradable packages, and apt dist-upgrade
handles changing dependencies with new versions of packages.
Editing the Sources List
Next, you need to edit your sources.list
file to point to the old-releases server. This is because Ubuntu 18.10 is no longer supported and its packages have been moved to an old-releases server.
Run the following command to open the file in a text editor:
sudo nano /etc/apt/sources.list
In the file, replace all instances of http://archive.ubuntu.com
with http://old-releases.ubuntu.com
. Save the changes and exit the text editor.
Updating Package Lists
Now, update your package lists again by running:
sudo apt update
Installing the Upgrade Tool
Ubuntu provides a tool called update-manager-core
that handles distribution upgrades. Install it with the following command:
sudo apt install update-manager-core
Configuring the Upgrade Tool
Next, you need to configure the upgrade tool to look for new ‘normal’ releases (as opposed to ‘long term support’ releases). Open the configuration file with the following command:
sudo nano /etc/update-manager/release-upgrades
Make sure the Prompt
line is set to normal
. Save the changes and exit the text editor.
Performing the Upgrade
You’re now ready to start the upgrade process. Run the following command:
sudo do-release-upgrade
The do-release-upgrade
command will now start the upgrade process. It will first update your package lists again, then calculate and manage the necessary changes.
Follow the prompts and instructions provided by the upgrade tool. It may take some time to download and install the necessary packages.
If you encounter any errors during the upgrade, it’s a good idea to look up the error message on the Ubuntu Forums or Ask Ubuntu.
Conclusion
Upgrading from Ubuntu 18.10 to 19.10 using the command line is a straightforward process, but it’s not officially supported. If you encounter problems, consider performing a clean installation of Ubuntu 19.10 or waiting for the release of Ubuntu 20.04 LTS, which will provide a supported upgrade path from Ubuntu 18.04 LTS.
Remember to always back up your data before performing a system upgrade. Happy upgrading!
Yes, you can upgrade from Ubuntu 18.10 to 19.10 using the command line by following the steps outlined in this article.
It is important to back up your data before upgrading because there is always a small risk of data loss during the upgrade process. By backing up your data, you can ensure that your important files are protected.
The ‘sudo’ command is used in the terminal to execute commands with administrative privileges. It allows you to perform system-level tasks that require elevated permissions.
The ‘apt update’ command updates the package lists on your system. It retrieves information about the latest versions of packages available in the repositories.
You can open the terminal in Ubuntu by pressing Ctrl+Alt+T
or by searching for ‘terminal’ in the application menu.
If you encounter errors during the upgrade process, it is recommended to look up the error message on the Ubuntu Forums or Ask Ubuntu websites. These resources often have solutions or workarounds for common issues.
Yes, if you encounter problems during the upgrade process or prefer a fresh installation, you can perform a clean installation of Ubuntu 19.10 by creating a bootable USB or DVD and following the installation instructions.
Ubuntu 20.04 LTS is scheduled to be released in April 2020. It will provide a supported upgrade path from Ubuntu 18.04 LTS.