Upgrade Ubuntu from the Command Line

less than 1 minute read

Here is the quick down and dirty on how to upgrade Ubuntu via the command line. If you have a firewall or an older version installed, then there may be some additional steps involved. Listed below is simply the bare minimum process from 16.04 forward.

Connect to your Ubuntu host and run the following cli commands:

  1. sudo apt update
  2. sudo apt upgrade
  3. Restart your host machine sudo reboot.
  4. Make sure Update Manager is installed sudo apt install update-manager-core
  5. Begin the upgrade with sudo do-release-upgrade, you will need to accept several prompts.
  6. Verify upgrade lsb_release -a

Leave a comment