Tambahkan paket software properties

$ sudo apt-get -y install software-properties-common
Tambahkan key
$ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
Tambahkan repository
$ sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main'
Update dan install mariadb
$ sudo apt-get update
$ sudo apt-get install mariadb-server mariadb-client