How To Update/Upgrade Ubuntu 18.04 Bionic Beaver

image_pdfimage_print

Step 1: Edit the repository config file

1.1 Edit Sources list

sudo nano /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-security main
deb http://archive.ubuntu.com/ubuntu bionic-updates main

1.1.a Add the fallowing repos

deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu 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
image_pdfimage_print

Donate