Mariadb error while installing frappe bench easy install

TASK [mariadb : Install MariaDB] **************************************************************************************************************
failed: [localhost] (2.33-1build1) …", “Setting up mariadb-client (10.2.17+maria~xenial) …”, “dpkg: dependency problems prevent configuration of mariadb-server:”, " mariadb-server depends on mariadb-server-10.2 (>= 10.2.17+maria~xenial); however:", " Package mariadb-server-10.2 is not configured yet.", “”, “dpkg: error processing package mariadb-server (–configure):”, " dependency problems - leaving unconfigured", “Processing triggers for libc-bin (2.23-0ubuntu10) …”, “Processing triggers for systemd (229-4ubuntu21.4) …”, “Processing triggers for ureadahead (0.100.0-19) …”, “Errors were encountered while processing:”, " mariadb-server-10.2", " mariadb-server"]}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

PLAY RECAP ************************************************************************************************************************************
localhost : ok=12 changed=3 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 420, in
install_bench(args)
File “install.py”, line 122, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 338, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

This may help

hi @trentmu

i removed mariadb after that i am trying to install then even its giving error

Did you set the DBroot password and grant the right permissions?
Also check that it is active/running

@trentmu

yeah i seted the password of DBroot

when i checked then it given error
sureshn@nikhil:~$ mysql -u user -p
Enter password:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
sureshn@nikhil:~