How To Update/Upgrade Ubuntu 18.04 Bionic Beaver

Step 1: Edit the repository config file

1.1 Edit Sources list

sudo nano /etc/apt/sources.list
deb bionic main
deb bionic-security main
deb bionic-updates main

1.1.a Add the fallowing repos

deb bionic main restricted
deb bionic-updates main restricted
deb bionic universe
deb bionic-updates universe
deb bionic multiverse
deb bionic-updates multiverse
deb bionic-backports main restricted universe multiverse
deb bionic-security main restricted
deb bionic-security universe
deb bionic-security multiverse

Exit and Save

Step 2: Update/Upgrade

2.1 Update installed packages

sudo apt-get update -y

2.2 Upgrade installed packages to the latest versions

sudo apt-get upgrade -y

2.3 Update dependencies

sudo apt-get dist-upgrade -y

2.4 Auto-remove old files

sudo apt-get autoremove

Step 3: Reboot

3.1 Reboot the server

sudo reboot