Ubuntu 16.04 to Ubuntu 20.04 tutorial

888u

Last update at :2024-03-16,Edit by888u

This site has a VPS that has been using Ubuntu 16.04 system. Recently, it needs to update the environment, so I simply upgraded the system from Ubuntu 16.04 to Ubuntu 20.04. This article records the upgrade steps and upgrades. Some problems encountered during the process.

1. Preparation

If you have important data on your host, you must back up the data before upgrading the system. You can download the backup data locally, or you can back up the data to another VPS host. For specific backup methods, please refer to the previous article. Tutorial: "Use rsync to realize remote synchronization of data between VPS and back up VPS data".

You can also use the backup function provided by the service provider for backup. The general tutorial is Backup or Snapshots. Previously, this site has shared with you several common and related tutorials:

  • "Bricklayer Snapshots Tutorial: How to create free snapshots and set them to be saved permanently"
  • "Tutorial on how to use the Vultr Snapshot function to quickly back up host data"
  • "Linode Backup Function (Backup) Tutorial"

2. Steps to upgrade the system

Ubuntu 16.04 cannot be directly upgraded to Ubuntu 20.04. You must first upgrade to Ubuntu 18.04, and then upgrade from Ubuntu 18.04 to Ubuntu 20.04. In fact, you only need to perform the following upgrade steps twice.

1. Update installed software

sudo apt-get update sudo apt-get upgrade -y sudo apt-get dist-upgrade

2. Remove unnecessary software

sudo apt-get autoremove

3. Installation and update management

sudo apt-get install update-manager-core

4. Start updating the system

sudo do-release-upgrade

Basically, just enter the command and select some options to complete the upgrade. Basically, you will not encounter any problems.

If you encounter the problem "Checking for a new Ubuntu release Please install all available updates for your release before upgrading." during the upgrade process, then execute the following update command before upgrading the system:

sudo apt-get update sudo apt-get upgrade -y sudo apt-get dist-upgrade

5. Check the system version

After the update is completed, use the command lsb_release -a to check the system version of the VPS to see if it has been successfully upgraded to Ubuntu 20.04:

3. Other upgrade methods

If you don’t care about the data on the VPS, you can directly use the function of modifying the system version provided by the service provider. Generally, VPS merchants have this function, but if you use this function, all data on the host will be erased. For example, Bricklayer's reinstallation system function: "Bricklayer's tutorial on checking the current system version and reinstalling the system"

Recommended site search: US multi-IP station group vps independent IP, network IP address query, telecom host rental, foreign host shopping guide, domain name registration query, cn domain name price, free US host in domain name registration, free foreign space,

p>

Ubuntu 16.04 to Ubuntu 20.04 tutorial

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码