Update Ubuntu:

Execute this command to update the current system to the latest update and upgrade anything that can.

sudo apt update && sudo apt upgrade -y

Update Ubuntu

Execute this command to update the current system to the latest updates and full upgrade anything that can.

sudo apt update && sudo apt full-upgrade -y