New site are unable to create, MySql is not installing

Hi,

My running server got in trouble my sites are showing error establishing db connection error.

I tried creating new website with ee crate ecample.com --mysql

it says

Oops Something went wrong!!
Check logs for reason `tail /var/log/ee/ee.log` & Try Again!!!

I then tried ee stack install --all It also says the above error

I found these in my ee.log

Adding system user `debian-spamd' (UID 114) ...
Adding new group `debian-spamd' (GID 121) ...
Adding new user `debian-spamd' (UID 114) with group `debian-spamd' ...
Creating home directory `/var/lib/spamassassin' ...
SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin
Processing triggers for ureadahead (0.100.0-16) ...
Setting up sa-compile (3.4.0-1ubuntu2.1) ...
Running sa-compile (may take a long time)
SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Errors were encountered while processing:
 mariadb-server-10.1
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
2017-05-25 12:29:14,405 (INFO) ee : ^[[94m^[[91mOops Something went wrong!!^[[0m
2017-05-25 12:29:14,405 (ERROR) ee : ^[[91mCheck logs for reason `tail /var/log/ee/ee.log` & Try Again!!!^[[0m

Can anyone solve my problem,