How to Upgrade an Ubuntu Server

0 min read 95 words

Upgrading an Ubuntu Server is quite easy, just follow the below commands:

Option 1: Tldr; (just run the below!)

sudo apt-get update && sudo apt-get upgrade
sudo apt dist-upgrade
sudo do-release-upgrade
reboot

Option 2: Follow the steps to Upgrade Ubuntu Server

1: Update the packages:

Start by making sure that you have all the packages and dependencies ready locally before we upgrade

sudo apt-get update && sudo apt-get upgrade

2: Update the dependencies for the distribution:

sudo apt dist-upgrade

3: Check for upgrade version:

sudo do-release-upgrade -c

4: Perform upgrade:

sudo do-release-upgrade

5: Reboot:

reboot

Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags