Ubuntu 20.04 LTS (code name Focal Fossa) was released on April 23, 2020. It is a long-term support release, which means it receives security and maintenance updates for five years.
This release includes:
This guide walks you through how to upgrade to Ubuntu 20.04 from Ubuntu 18.04 or Ubuntu 19.10. If you are running an earlier version, you need to upgrade to one of those first before jumping to 20.04.
<strong>Prerequisite:</strong> You need root access or a user account with sudo privileges to perform this upgrade.
Before you do anything, back up your important files. A major OS upgrade carries a small risk of failure, and you want your data to be safe if something goes wrong.
If your system is a virtual machine, take a full snapshot before you start. This gives you a quick restore point in case the upgrade fails or breaks something.
You need to update all currently installed packages before starting the release upgrade. Running it with outdated packages can cause conflicts or errors mid-upgrade.
First, check if any packages are being held back:
bashsudo apt-mark showhold
If any are on hold, release them before proceeding:
bashsudo apt-mark unhold package_name
Update your package list and upgrade all installed packages:
bashsudo apt updatesudo apt upgrade
If the kernel was upgraded, reboot your machine and log back in:
bashsudo systemctl reboot
Then run a full upgrade to handle any packages that require dependency changes:
bashsudo apt full-upgrade
Then clean up packages that are no longer needed:
bashsudo apt --purge autoremove
Your system is now fully up to date and ready for the release upgrade.
The upgrade uses a tool called do-release-upgrade. It is part of the update-manager-core package, which is installed by default on most Ubuntu systems. If it is not on your system, install it with:
bashsudo apt install update-manager-core
Start the upgrade:
bashsudo do-release-upgrade -d
Here is what happens during the process:
yyThe whole process can take anywhere from 20 minutes to over an hour, depending on your internet speed and the number of packages being updated.
When it finishes, the tool asks if you want to remove obsolete packages. If you are not sure, type d to view the list first. It is generally safe to type y and remove them.
The tool will then ask you to reboot. Type y to restart.
After your system restarts and you log back in, confirm that Ubuntu 20.04 is running:
bashlsb_release -a
Output:
Distributor ID: UbuntuDescription: Ubuntu 20.04 LTSRelease: 20.04Codename: focal
Your system is now running Ubuntu 20.04 LTS. If you run into any issues, check the Ubuntu 20.04 release notes for a list of known problems and their fixes. Got questions? Leave a comment below.
Google Chrome is the most widely used web browser in the world. It is fast, secure,…
Java is one of the most widely used programming languages in the world. It runs on…
Raspberry Pi is the most popular single-board computer ever made. It is small, affordable, and surprisingly…
pip is Python's package manager. It lets you search, download, and install packages from the Python Package…
MySQL is the most popular open-source relational database management system. It is fast, reliable, and a…
Git is the most widely used version control system in the world. It was created by…