upgrading ubuntu 20.04 lts to 21.04 code example Example: upgrade ubuntu 16.04 to 20.04 sudo apt update && sudo apt upgrade sudo do-release-upgrade