how to update ubuntu 18.04 code example
Example 1: upgrade ubuntu 16.04 to 20.04
sudo apt update && sudo apt upgrade
sudo do-release-upgrade
Example 2: how to update ubuntu
sudo apt update && sudo apt upgrade -y
sudo apt update && sudo apt upgrade
sudo do-release-upgrade
sudo apt update && sudo apt upgrade -y